/** * @see RM_Permissionable_iPermissionable::_updateAccessInfo */ public function _updateAccessInfo() { if (!$this->_existsInDb()) { return; } $this->_mapper->updateAccessInfo($this); }
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()); } }
/** * * * @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)); }
public function setAutoGroup($type = 'blank') { //M('Trace')->trace("stragegy", "set strategy $type"); $this->_autoGroup = $this->_mapper->getAutoGroupStrategy($this, $type); }