hydrate($datas);
$this->readoptions();
$this->generatecontent();
}
public function hydrate($datas)
{
foreach ($datas as $key => $value) {
$method = 'set' . $key;
if (method_exists($this, $method)) {
$this->$method($value);
}
}
}
public function readoptions()
{
parse_str($this->options, $datas);
$this->hydrate($datas);
}
public function generatecontent()
{
$mediamanager = new Modelmedia();
$medialist = $mediamanager->getlistermedia(Model::MEDIA_DIR . $this->path . '/');
if (!$medialist) {
$this->content = 'RENDERING ERROR : path : ' . Model::MEDIA_DIR . $this->path . '/
does not exist';
return false;
} else {
$mediamanager->medialistsort($medialist, $this->sortby, $this->order);
$dirid = str_replace('/', '-', $this->path);
$div = '