Beispiel #1
0
 public function _initialize(KConfig $config)
 {
     $config->identity_column = 'id';
     $orderable = $this->getBehavior('com://admin/categories.database.behavior.orderable', array('parent_column' => 'section_id'));
     $config->append(array('name' => 'categories', 'behaviors' => array('lockable', $orderable, 'sluggable', 'cascadable'), 'column_map' => array('enabled' => 'published', 'locked_on' => 'checked_out_time', 'locked_by' => 'checked_out', 'slug' => 'alias', 'section_id' => 'section')));
     parent::_initialize($config);
 }
Beispiel #2
0
 /**
  * Initializes the options for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param 	object 	An optional KConfig object with configuration options.
  * @return  void
  */
 protected function _initialize(KConfig $config)
 {
     $package = $this->_identifier->package;
     $name = KInflector::singularize($this->_identifier->name);
     $config->append(array('xml_path' => JPATH_ADMINISTRATOR . '/components/com_' . $package . '/views/' . $name . '/tmpl/' . $name . '.xml'));
     parent::_initialize($config);
 }
Beispiel #3
0
    public function  _initialize(KConfig $config)
    {
        $config->identity_column = 'id';
        
        $config->append(array(
            'name' => 'content',
            'behaviors' => array(
            	'creatable', 'modifiable', 'lockable', 'orderable', 'sluggable', 'revisable'  
            ),
            'column_map' => array(
                'locked_on'        => 'checked_out_time',
                'locked_by'        => 'checked_out',
                'slug'       	   => 'alias',
                'section_id'       => 'sectionid',
                'category_id'	   => 'catid',
                'created_on' 	   => 'created',
                'modified_on'      => 'modified',
                'description'      => 'metadesc',
                'params'		   => 'attribs'
            ),
            'filters' => array(
                'introtext'   => array('html', 'tidy'),
                'fulltext'    => array('html', 'tidy'),
                'attribs'	  => 'ini'
		    )
        ));

        parent::_initialize($config);
    }
Beispiel #4
0
 public function _initialize(KConfig $config)
 {
     $config->identity_column = 'id';
     $sluggable = $this->getBehavior('sluggable', array('columns' => array('name')));
     $config->append(array('name' => 'contact_details', 'behaviors' => array('orderable', 'lockable', $sluggable), 'column_map' => array('enabled' => 'published', 'locked_on' => 'checked_out_time', 'locked_by' => 'checked_out', 'slug' => 'alias', 'category' => 'catid'), 'filters' => array('params' => 'ini')));
     parent::_initialize($config);
 }
 public function _initialize(KConfig $config)
 {
     $sluggable = $this->getBehavior('sluggable', array('columns' => array('name')));
     $orderable = $this->getBehavior('com://admin/categories.database.behavior.orderable', array('parent_column' => 'catid'));
     $config->append(array('identity_column' => 'id', 'base' => 'newsfeeds', 'name' => 'newsfeeds', 'behaviors' => array('lockable', $orderable, $sluggable), 'column_map' => array('enabled' => 'published', 'locked_on' => 'checked_out_time', 'locked_by' => 'checked_out', 'slug' => 'alias'), 'filters' => array('slug' => 'slug', 'link' => 'url')));
     parent::_initialize($config);
 }
 public function _initialize(KConfig $config)
 {
     $config->identity_column = 'id';
     $orderable = $this->getBehavior('com://admin/categories.database.behavior.orderable', array('parent_column' => 'catid'));
     $config->append(array('name' => 'weblinks', 'base' => 'weblinks', 'behaviors' => array('lockable', $orderable, 'sluggable'), 'column_map' => array('enabled' => 'published', 'locked_on' => 'checked_out_time', 'locked_by' => 'checked_out', 'slug' => 'alias'), 'filters' => array('description' => array('html', 'tidy'), 'url' => array('url'), 'params' => array('ini'))));
     parent::_initialize($config);
 }
Beispiel #7
0
 public function _initialize(KConfig $config)
 {
     $sluggable = $this->getBehavior('sluggable', array('columns' => array('name')));
     $orderable = $this->getBehavior('com://admin/categories.database.behavior.orderable', array('parent_column' => 'catid'));
     $config->append(array('identity_column' => 'bid', 'base' => 'banner', 'name' => 'banner', 'behaviors' => array('creatable', 'lockable', $sluggable, $orderable, 'hittable'), 'column_map' => array('enabled' => 'showBanner', 'created_on' => 'date', 'locked_on' => 'checked_out_time', 'locked_by' => 'checked_out', 'slug' => 'alias', 'hits' => 'clicks'), 'filters' => array('custombannercode' => array('html', 'tidy'), 'params' => 'ini')));
     parent::_initialize($config);
 }
Beispiel #8
0
	protected function _initialize(KConfig $config)
    {
        $config->identity_column = 'id';
        
        $config->append(array(
            'name'		 => 'menu',
			'behaviors'  => array('lockable', 'sluggable', 'nestable'),
			'column_map' => array(
				'title'			  => 'name',
				'enabled'		  => 'published',
				'locked_by'		  => 'checked_out',
				'locked_on'		  => 'checked_out_time',
				'slug'			  => 'alias',
				'group_id'		  => 'access',
				'level'			  => 'sublevel',
				'component_id'	  => 'componentid',
				'pages_menu_name' => 'menutype',
				'parent_id'		  => 'parent'
			),
			'filters' => array(
                'params' => 'ini'
		    )
		));

		parent::_initialize($config);
    }
Beispiel #9
0
 protected function _initialize(KConfig $config)
 {
     $config->append(array(
         'name' => 'core_acl_aro'
     ));
     
     parent::_initialize($config);
 }
Beispiel #10
0
    protected function _initialize(KConfig $config)
    {     
        $config->append(array(
            'behaviors' => array('creatable')
        ));

        parent::_initialize($config);
    }
Beispiel #11
0
 public function  _initialize(KConfig $config) 
 {
     $config->append(array(
         'name'  => 'modules_menu',
     ));
  
     parent::_initialize($config);
 }
Beispiel #12
0
    protected function _initialize(KConfig $config)
    {
        $config->append(array(
            'name'            => 'session',
            'base'            => 'session'
        ));

        parent::_initialize($config);
    }
Beispiel #13
0
    public function  _initialize(KConfig $config) 
    {
        $config->identity_column = 'id';

        $config->append(array(
            'name'    => 'components',
            'filters' => array('params' => 'ini')
        ));
        
        parent::_initialize($config);
    }
Beispiel #14
0
    public function  _initialize(KConfig $config)
    {
        $config->identity_column = 'content_id';
        
        $config->append(array(
            'name'       => 'content_frontpage',
            'behaviors'  => array('orderable')
        ));

        parent::_initialize($config);
    }
Beispiel #15
0
	protected function _initialize(KConfig $config)
	{
		$config->append(array(
			'filters' => array(
				'identifier' => 'identifier',
				'path'       => 'com.files.filter.path',
				'parameters' => 'json'
			)
		));

		parent::_initialize($config);
	}
Beispiel #16
0
	protected function _initialize(KConfig $config)
    {
        $config->identity_column = 'id';    	
        
        $config->append(array(
			'name'			=> 'menu_types',
			'column_map'	=> array(
				'name'	=> 'menutype'
			)
		));

		parent::_initialize($config);
    }
Beispiel #17
0
    protected function _initialize(KConfig $config)
	{
		$config->append(array(
			'name'				=> 'users',
			'base' 				=> 'users',
			'column_map'		=> array(
				'users_user_id'		=> 'id',
				'group_name'		=> 'usertype',
				'enabled'			=> 'block',
				'send_email'		=> 'sendEmail',
				'users_group_id'	=> 'gid',
				'registered_on'		=> 'registerDate',
				'last_visited_on'	=> 'lastvisitDate'
			)
		));

		parent::_initialize($config);
	}
Beispiel #18
0
    public function  _initialize(KConfig $config) 
    {
        $config->identity_column = 'id';

        $config->append(array(
            'name'       => 'plugins',
            'behaviors'  =>  array('lockable', 'orderable'),
            'column_map' =>  array(
                'title'     => 'name',
                'name'		=> 'element',
                'enabled' 	=> 'published',
                'locked_on' => 'checked_out_time',
                'locked_by' => 'checked_out',
                'type'		=> 'folder'
            ),
            'filters'    => array('params' => 'ini')
        ));
        
        parent::_initialize($config);
    }
Beispiel #19
0
    public function  _initialize(KConfig $config) 
    {
        $config->identity_column = 'id';
		
        $config->append(array(
            'name'       => 'modules',
            'behaviors'  => array('lockable', 'orderable'),
            'column_map' => array(
                'enabled'      => 'published',
                'locked_on'    => 'checked_out_time',
                'locked_by'    => 'checked_out',
                'type'	       => 'module'
                ),
            'filters' => array(
                'content' => array('html', 'tidy'),
                'params'  => 'ini' 
                )
            ));
     
        parent::_initialize($config);
    }
Beispiel #20
0
	public function  _initialize(KConfig $config) 
  	{
		$config->identity_column = 'id';
			        
		$config->append(array(
    		'name' 			=> 'sections',
			'base' 			=> 'sections',
			'behaviors'		=>  array('lockable', 'orderable', 'sluggable', 'cascadable'),
    		'column_map'	=>  
				array(
					'enabled' 	=> 'published',
               		'locked_on' => 'checked_out_time',
               		'locked_by' => 'checked_out',
                	'slug' 		=> 'alias'
				),
			'filters'		=> 
		        array(
				    'description' => array('html', 'tidy'),
		        ),
		));
	
      	parent::_initialize($config);
  	}
Beispiel #21
0
 public function _initialize(KConfig $config)
 {
     $relationable = $this->getBehavior('com://admin/taxonomy.database.behavior.relationable', array('ancestors' => array('organisations' => array('identifier' => 'com://admin/events.model.organisations')), 'descendants' => array('events' => array('identifier' => 'com://admin/events.model.events'))));
     $config->append(array('behaviors' => array('lockable', 'creatable', 'modifiable', 'identifiable', 'orderable', 'sluggable', 'com://admin/cck.database.behavior.elementable', $relationable)));
     parent::_initialize($config);
 }
Beispiel #22
0
 public function _initialize(KConfig $config)
 {
     $relationable = $this->getBehavior('com://admin/taxonomy.database.behavior.relationable', array('ancestors' => array('categories' => array('identifier' => 'com://admin/makundi.model.categories', 'identity_column' => 'makundi_category_id', 'table' => '#__makundi_categories', 'sort' => 'title'), 'regions' => array('identifier' => 'com://admin/regions.model.regions')), 'descendants' => array('articles' => array('identifier' => 'com://admin/articles.model.articles'))));
     $config->append(array('behaviors' => array('lockable', 'creatable', 'modifiable', 'sluggable', 'com://admin/cck.database.behavior.elementable', $relationable, 'com://admin/translations.database.behavior.translatable')));
     parent::_initialize($config);
 }
 public function _initialize(KConfig $config)
 {
     $config->append(array('behaviors' => array('creatable', 'modifiable', 'lockable')));
     parent::_initialize($config);
 }
 protected function _initialize(KConfig $config)
 {
     $config->append(array('name' => 'news_view_activities', 'base' => 'news_activities'));
     parent::_initialize($config);
 }
Beispiel #25
0
 protected function _initialize(KConfig $config)
 {
     $behavior = $this->getService('koowa:database.behavior.sluggable', array('columns' => array('id', 'title')));
     $config->append(array('filters' => array('slug' => 'cmd', 'path' => 'com://admin/files.filter.path', 'parameters' => 'json'), 'behaviors' => array($behavior)));
     parent::_initialize($config);
 }
Beispiel #26
0
 /**
  * @param KConfig $config
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('behaviors' => array('com://admin/translations.database.behavior.translatable')));
     parent::_initialize($config);
 }
 protected function _initialize(KConfig $config)
 {
     $config->append(array('name' => 'attachments_attachments', 'base' => 'attachments_attachments'));
     parent::_initialize($config);
 }
Beispiel #28
0
 /**
  * @param KConfig $config
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('behaviors' => array('lockable', 'creatable', 'modifiable', 'identifiable', 'com://admin/translations.database.behavior.orderable', 'sluggable', 'com://admin/cck.database.behavior.elementable', 'com://admin/taxonomy.database.behavior.relationable', 'com://admin/translations.database.behavior.translatable')));
     parent::_initialize($config);
 }
Beispiel #29
0
 /**
  * @param KConfig $config
  */
 protected function _initialize(KConfig $config)
 {
     $relationable = $this->getBehavior('com://admin/taxonomy.database.behavior.relationable', array('descendants' => array('files' => array('identifier' => 'com://site/documents.model.files'))));
     $config->append(array('behaviors' => array('sluggable', 'lockable', 'creatable', 'modifiable', 'identifiable', $relationable)));
     parent::_initialize($config);
 }
Beispiel #30
0
 /**
  * @param KConfig $config
  */
 protected function _initialize(KConfig $config)
 {
     $relationable = $this->getBehavior('com://admin/taxonomy.database.behavior.relationable');
     $config->append(array('behaviors' => array('sluggable', 'lockable', 'creatable', 'modifiable', 'identifiable', $relationable)));
     parent::_initialize($config);
 }