Daniia/Daniia.php
final public function limit($limit,$offset=null) {
      if (is_numeric($limit) || is_array($limit)) {
         if(is_array($limit)) {
            $temp   = $limit;
            $limit  =  $temp[0];
            $offset = @$temp[1];
         }

         $this->limit = " LIMIT {$limit} ";

         if(is_numeric($offset)) {
            $this->offset( $offset );
         }
         $this->find_first_data = $this->find_save_data = $this->find_delete_data = FALSE;

         $this->get_instance();
         return $this;
      }

      return null;
   }
final public function limit($limit,$offset=null) {
      if (is_numeric($limit) || is_array($limit)) {
         if(is_array($limit)) {
            $temp   = $limit;
            $limit  =  $temp[0];
            $offset = @$temp[1];
         }

         $this->limit = " LIMIT {$limit} ";

         if(is_numeric($offset)) {
            $this->offset( $offset );
         }
         $this->find_first_data = $this->find_save_data = $this->find_delete_data = FALSE;

         $this->get_instance();
         return $this;
      }

      return null;
   }
final public function limit ( $ limit , $ offset = null ) { if ( is_numeric ( $ limit ) || is_array ( $ limit ) ) { if ( is_array ( $ limit ) ) { $ temp = $ limit ; $ limit = $ temp [ 0 ] ; $ offset = @ $ temp [ 1 ] ; } $ this -> limit = " LIMIT {$limit} " ; if ( is_numeric ( $ offset ) ) { $ this -> offset ( $ offset ) ; } $ this -> find_first_data = $ this -> find_save_data = $ this -> find_delete_data = FALSE ; $ this -> get_instance ( ) ; return $ this ; } return null ; }
agrega el query basico LIMIT
@author Carlos Garcia
@param Integer|Array $limit
@param Integer $offset
@return Object
agrega el query basico LIMIT