/** * Constructor * * @param string $id ID * @param string $table Table * @param string $ds Datasource */ public function __construct($id = false, $table = null, $ds = null) { parent::__construct($id, $table, $ds); //validation for cms updation //$this->virtualFields = array('ron_total' => "SELECT SUM(profit) FROM `transactions` WHERE `completed` = '1' AND `currency` = 'RON' AND `employee_id`= Employee.id ", // 'euro_total' => "SELECT SUM(profit) FROM `transactions` WHERE `completed` = '1' AND `currency` = 'EURO' AND `employee_id`= Employee.id " // ); }
/** * Constructor * * @param string $id ID * @param string $table Table * @param string $ds Datasource */ public function __construct($id = false, $table = null, $ds = null) { parent::__construct($id, $table, $ds); //validation for cms updation }
/** * Constructor * * @param string $id ID * @param string $table Table * @param string $ds Datasource */ public function __construct($id = false, $table = null, $ds = null) { parent::__construct($id, $table, $ds); //validation for cms updation $this->virtualFields = array(); }
/** * Constructor * * @param string $id ID * @param string $table Table * @param string $ds Datasource */ public function __construct($id = false, $table = null, $ds = null) { parent::__construct($id, $table, $ds); }