Пример #1
0
 /**
  * Get filter select that this object will
  * pass down to all sub filter
  * 
  * By default it is the parents or the objects filter
  * This method can be overwritten
  * 
  * @return Mzax_Emarketing_Db_Select
  */
 public function getQuery()
 {
     if (!$this->_allowChildren && $this->_parent) {
         return $this->_parent->getQuery();
     }
     return $this->getObject()->getQuery();
 }
Пример #2
0
 public function acceptParent(Mzax_Emarketing_Model_Object_Filter_Component $parent)
 {
     return $parent->getQuery()->hasAllBindings('recipient_id', 'goal_time', 'recipient_sent_at');
 }