src/Model/Tables/MelisGenericTable.php
public function getTotalData($field = null, $idValue = null)
	{
	    $select = $this->tableGateway->getSql()->select();
	    
	    if (!empty($field) && !empty($idValue))
	    {
	    	$select->where(array($field => (int) $idValue));
	    }
	    
	    $resultSet = $this->tableGateway->selectWith($select);

	    return $resultSet->count();
	}
public function getTotalData($field = null, $idValue = null)
	{
	    $select = $this->tableGateway->getSql()->select();
	    
	    if (!empty($field) && !empty($idValue))
	    {
	    	$select->where(array($field => (int) $idValue));
	    }
	    
	    $resultSet = $this->tableGateway->selectWith($select);

	    return $resultSet->count();
	}
public function getTotalData ( $ field = null , $ idValue = null ) { $ select = $ this -> tableGateway -> getSql ( ) -> select ( ) ; if ( ! empty ( $ field ) && ! empty ( $ idValue ) ) { $ select -> where ( array ( $ field => ( int ) $ idValue ) ) ; } $ resultSet = $ this -> tableGateway -> selectWith ( $ select ) ; return $ resultSet -> count ( ) ; }
Returns the total rows of the selected table
@return int
Returns the total rows of the selected table