Exemplo n.º 1
0
 /**
  * @return Pap_Stats_Data_Commission
  */
 public function getCommission() {
     if ($this->commission == null) {
         $computer = new Pap_Stats_Computer_Transactions($this->params, Pap_Common_Constants::TYPE_CPM);
         $this->commission = $computer->getCommissions();
     }
     return $this->commission;
 }
 protected function initWhereConditions() {
     parent::initWhereConditions();
     $this->selectBuilder->where->add('t.'.Pap_Db_Table_Transactions::R_TYPE, '=', $this->mainType);
 }
 protected function initGroupBy() {
     parent::initGroupBy();
     $this->selectBuilder->groupBy->add('t.'.Pap_Db_Table_Transactions::COMMISSIONTYPEID);
 }
Exemplo n.º 4
0
 /**
  * @return Pap_Stats_Data_Commission
  */
 public function getCount() {
     $this->init();
     return $this->computer->getCount();
 }