/** * Fetch number of recipients * * @return int */ public function getCount() { parent::getCount(); if (!is_null($this->newsletter_id)) { return -1; } $where_and_joins = $this->_getWhereAndJoins(); $count = Symphony::Database()->fetchCol('count', "SELECT count(`a`.`id`) as `count` FROM `tbl_authors` as `a` " . $where_and_joins['joins'] . ' WHERE 1 ' . $where_and_joins['where']); return $count[0]; }
/** * Fetch number of recipients * * @return int */ public function getCount() { parent::getCount(); if ($this->newsletter_id !== NULL) { return -1; } $this->_createTempTable(); $rows = Symphony::Database()->fetchCol('count', 'SELECT count(email) as count from ' . $this->_tempTable); return $rows[0]; }
public function getProperties() { $properties = array('email' => $this->emailField, 'name' => array('fields' => $this->nameFields, 'xslt' => $this->nameXslt)); return array_merge(parent::getProperties(), $properties); }