Exemple #1
0
 /**
  * Return an array of permission object.
  *
  * @return array
  */
 public function getPermissions()
 {
     $permissions = parent::getPermissions();
     $permissions['com://site/pages.domain.entity.page'][] = 'edit';
     unset($permissions['com://site/pages.domain.entity.revision']);
     return $permissions;
 }
Exemple #2
0
 /**
  * Initializes the default configuration for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param KConfig $config An optional KConfig object with configuration options.
  *
  * @return void
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('story_aggregation' => array('photo_add' => 'target'), 'behaviors' => array('scopeable' => array('class' => 'ComPhotosDomainEntityPhoto'), 'hashtagable' => array('class' => 'ComPhotosDomainEntityPhoto'))));
     parent::_initialize($config);
 }
Exemple #3
0
 /**
  * Initializes the default configuration for the object.
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param KConfig $config An optional KConfig object with configuration options.
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('story_aggregation' => array('todo_disable,todo_add,todo_enable' => 'target'), 'behaviors' => array('scopeable' => array('class' => 'ComTodosDomainEntityTodo'), 'hashtagable' => array('class' => 'ComTodosDomainEntityTodo'))));
     parent::_initialize($config);
 }