Beispiel #1
0
 /**
  * @see RM_Permissionable_iPermissionable::_updateAccessInfo
  */
 public function _updateAccessInfo()
 {
     if (!$this->_existsInDb()) {
         return;
     }
     $this->_mapper->updateAccessInfo($this);
 }
Beispiel #2
0
 public function collectCommand($name)
 {
     if (!is_array($name)) {
         $name = array($name);
     }
     foreach ($name as $command) {
         $this->_composite()->addCommand($this->_mapper->getCommand($command, $this->_object)->process());
     }
 }
Beispiel #3
0
 /**
  *  
  *
  * @param unknown_type $elements
  * @param RM_ReportPeriod_Range $obRange
  */
 public function prepareTopForMonth($elements = 10, RM_ReportPeriod_Range $obRange = NULL)
 {
     #!! Заморожено до получения новых аргументов в пользу такого решения
     $obCategory = iterFirst(M('Category')->getCategoryList());
     $obPeriod = M('ReportPeriod')->getPeriod('month', $obRange);
     $obDetail = M('ReportDetail')->getDetail('brand');
     $obRegion = iterFirst($this->getRestrictionList('region'));
     $obTop = $this->_mapper->extension('top');
     $obTop->init(array('period' => $obPeriod, 'detail' => $obDetail, 'region' => $obRegion));
 }
Beispiel #4
0
 public function setAutoGroup($type = 'blank')
 {
     //M('Trace')->trace("stragegy", "set strategy $type");
     $this->_autoGroup = $this->_mapper->getAutoGroupStrategy($this, $type);
 }