Daniia/Daniia.php
final public function table($table) {
      $this->connection();
      if (func_num_args()>1)
         $table = func_get_args();
      else if(is_string($table))
         $table = [$table];
      
      $schema = '';
      if ($this->driver=='pgsql' && $this->schema)
         $schema = $this->schema ? $this->schema.'.' : '';

      $tmp_table = [];
      foreach($table as $table) {
         if (preg_match('/\./', $table)) {
            $tmp_table[] = $table;
         }
         else {
            $tmp_table[] = $schema.$table;
         }
      }

      $table = implode(",", $tmp_table);

      if ($this->extended) {
         if ( $this->table ) {
            $this->table = $schema.$this->table.",".$table;
         } else {
            $this->table = $table;
         }
      }
      else {
         $this->table = $table;
      }

      $this->find_first_data = $this->find_save_data = $this->find_delete_data = FALSE;

      $this->get_instance();
      return $this;
   }
final public function table($table) {
      $this->connection();
      if (func_num_args()>1)
         $table = func_get_args();
      else if(is_string($table))
         $table = [$table];
      
      $schema = '';
      if ($this->driver=='pgsql' && $this->schema)
         $schema = $this->schema ? $this->schema.'.' : '';

      $tmp_table = [];
      foreach($table as $table) {
         if (preg_match('/\./', $table)) {
            $tmp_table[] = $table;
         }
         else {
            $tmp_table[] = $schema.$table;
         }
      }

      $table = implode(",", $tmp_table);

      if ($this->extended) {
         if ( $this->table ) {
            $this->table = $schema.$this->table.",".$table;
         } else {
            $this->table = $table;
         }
      }
      else {
         $this->table = $table;
      }

      $this->find_first_data = $this->find_save_data = $this->find_delete_data = FALSE;

      $this->get_instance();
      return $this;
   }
final public function table ( $ table ) { $ this -> connection ( ) ; if ( func_num_args ( ) > 1 ) $ table = func_get_args ( ) ; else if ( is_string ( $ table ) ) $ table = [ $ table ] ; $ schema = '' ; if ( $ this -> driver == 'pgsql' && $ this -> schema ) $ schema = $ this -> schema ? $ this -> schema . '.' : '' ; $ tmp_table = [ ] ; foreach ( $ table as $ table ) { if ( preg_match ( '/\./' , $ table ) ) { $ tmp_table [ ] = $ table ; } else { $ tmp_table [ ] = $ schema . $ table ; } } $ table = implode ( "," , $ tmp_table ) ; if ( $ this -> extended ) { if ( $ this -> table ) { $ this -> table = $ schema . $ this -> table . "," . $ table ; } else { $ this -> table = $ table ; } } else { $ this -> table = $ table ; } $ this -> find_first_data = $ this -> find_save_data = $ this -> find_delete_data = FALSE ; $ this -> get_instance ( ) ; return $ this ; }
Establese el nombre de la tabla
@author Carlos Garcia
@param $tables String
@return Object
Establese el nombre de la tabla