public function getTotal() { $search = $this->getState('filter.search'); $searchid = $this->getState('filter.searchid'); if (empty($search) && empty($searchid)) { //return 0; } return parent::getTotal(); }
/** * Tests the getTotal method. * * @since 3.4 * * @return void * * @testdox getTotal() returns false if an empty query is passed to the database object */ public function testGetTotalReturnsFalseOnEmptyQuery() { TestReflection::setValue($this->object, '__state_set', true); $this->assertFalse($this->object->getTotal()); }
public function getTotal() { if ($this->_isPlugin()) { $instances = RSMembership::getSharedContentPlugins(); foreach ($instances as $instance) { if (method_exists($instance, 'getTotal')) { $instance->getTotal($this->getShareType(), $total); } } } else { $total = parent::getTotal(); } return $total; }