/**
* Loads a list of custom layouts for the specified parameters, returns an array of Object\ClassDefinition\CustomLayout elements
*
* @return array
*/
public function load()
{
$layouts = array();
$layoutsRaw = $this->db->fetchCol("SELECT id FROM custom_layouts" . $this->getCondition() . $this->getOrder() . $this->getOffsetLimit(), $this->model->getConditionVariables());
foreach ($layoutsRaw as $classRaw) {
$layouts[] = Model\Object\ClassDefinition\CustomLayout::getById($classRaw);
}
$this->model->setLayoutDefinitions($layouts);
return $layouts;
}