Beispiel #1
0
 public function addDecoratorToObject(RM_User_Family_Object $obFamily)
 {
     if (!isset($this->_cache[$obFamily->id()])) {
         $this->_cache[$obFamily->id()] = new $this->_className($obFamily);
     }
     return $this->_cache[$obFamily->id()];
 }
Beispiel #2
0
 /**
  * Enter description here...
  *
  */
 public function delete()
 {
     $this->_obFamily->validator(M('Validator')->create(array()));
     $this->_obFamily->delete();
 }
Beispiel #3
0
 protected function _ignoreIncrease(RM_Points_Account $obAccount, RM_User_Family_Object $obPerson)
 {
     return count($obAccount->getPaymentList()->filter('event=? and family_id=? and date_format(amount_date,?) = date_format(now(),?)', $this->_name, $obPerson->id(), '%Y', '%Y')) > 0;
 }