applications/dashboard/models/class.dbamodel.php
public function PrimaryKeyRange($Table) {
      $Model = $this->CreateModel($Table);
      
      $Data = $this->SQL
         ->Select($Model->PrimaryKey, 'min', 'MinValue')
         ->Select($Model->PrimaryKey, 'max', 'MaxValue')
         ->From($Table)
         ->Get()->FirstRow(DATASET_TYPE_ARRAY);
      
      if ($Data)
         return array($Data['MinValue'], $Data['MaxValue']);
      else
         return array(0, 0);
   }
public function PrimaryKeyRange($Table) {
      $Model = $this->CreateModel($Table);
      
      $Data = $this->SQL
         ->Select($Model->PrimaryKey, 'min', 'MinValue')
         ->Select($Model->PrimaryKey, 'max', 'MaxValue')
         ->From($Table)
         ->Get()->FirstRow(DATASET_TYPE_ARRAY);
      
      if ($Data)
         return array($Data['MinValue'], $Data['MaxValue']);
      else
         return array(0, 0);
   }
public function PrimaryKeyRange ( $ Table ) { $ Model = $ this -> CreateModel ( $ Table ) ; $ Data = $ this -> SQL -> Select ( $ Model -> PrimaryKey , 'min' , 'MinValue' ) -> Select ( $ Model -> PrimaryKey , 'max' , 'MaxValue' ) -> From ( $ Table ) -> Get ( ) -> FirstRow ( DATASET_TYPE_ARRAY ) ; if ( $ Data ) return array ( $ Data [ 'MinValue' ] , $ Data [ 'MaxValue' ] ) ; else return array ( 0 , 0 ) ; }
Return the min and max values of a table's primary key.

@param string $Table The name of the table to look at.
@return array An array in the form (min, max).
Return the min and max values of a table s primary key .