function __construct()
 {
     parent::__construct();
     $this->belongs_to('parent', 'FileItem', ':parent_id=id');
     $this->has_many('childs', 'FileItem', ':id=parent_id', array('-type', 'name'));
     $this->has_many('blocks', 'BlockItem', array(':id=file_id', array('parent_id=', 0)), 'id');
 }
 function __construct()
 {
     parent::__construct();
     $this->belongs_to('parent', 'BlockItem', ':parent_id=id');
     $this->has_many('childs', 'BlockItem', ':id=parent_id', 'id');
     $this->belongs_to('file', 'FileItem', ':file_id=id');
     $this->has_many('notes', 'NoteItem', ':id=block_id', 'id');
 }
Exemplo n.º 3
0
 public function __construct()
 {
     $this->map_table('nodes');
     parent::__construct();
     $this->has_many('attributes', 'Attribute', ':id=node_id');
     $this->has_many('acl', 'Acl', ':id=node_id');
     $this->after_save_filter('on_after_save');
     $this->after_remove_filter('on_after_remove');
     if (method_exists($this, '__wakeup')) {
         $this->__wakeup();
     }
 }
 function __construct()
 {
     parent::__construct(true);
     $this->belongs_to('block', 'BlockItem', ':block_id=id');
 }
Exemplo n.º 5
0
 public function __construct()
 {
     parent::__construct();
     $this->belongs_to('node', 'Node', 'id=:node_id');
 }