Ejemplo n.º 1
0
 public function getTotal()
 {
     $search = $this->getState('filter.search');
     $searchid = $this->getState('filter.searchid');
     if (empty($search) && empty($searchid)) {
         //return 0;
     }
     return parent::getTotal();
 }
Ejemplo n.º 2
0
 /**
  * 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());
 }
Ejemplo n.º 3
0
Archivo: share.php Proyecto: JozefAB/qk
 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;
 }