public function __construct(KObjectConfig $config) { parent::__construct($config); if (isset($config->parent)) { $this->setParent($config->parent); } foreach ($config->children as $child) { $this->insertChild($child); } }
public function __construct(KObjectConfig $config) { parent::__construct($config); $this->addBehavior('com:files.database.behavior.thumbnail'); }