Update HTML links to the new methods
This commit is contained in:
parent
4473037ae8
commit
2d83cd6e78
4 changed files with 19 additions and 4 deletions
11
book.php
11
book.php
|
@ -154,6 +154,17 @@ class Book extends Base {
|
|||
}
|
||||
}
|
||||
|
||||
public function getDataFormat ($format) {
|
||||
foreach ($this->getDatas () as $data)
|
||||
{
|
||||
if ($data->format == $format)
|
||||
{
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
public function getFilePath ($extension, $idData = NULL, $relative = false)
|
||||
{
|
||||
$file = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue