original_string: public static function all()
      {
          $class = get_called_class();
          $object = new $class();
          $table = $object->_table;
          $key = $object->_keyName;
          //
          $data = Query::table($table)->select('*')->where("'true'", '=', 'true');
          //
          if ($object->_canKept) {
              $data = $data->orGroup(
              'and',
              Query::condition('deleted_at', '>', Time::current()),
              Query::condition('deleted_at', 'is', 'NULL', false));
          }
  
          if ($object->_canStashed) {
              $data = $data->orGroup(
              'and',
              Query::condition('appeared_at', '<=', Time::current()),
              Query::condition('appeared_at', 'is', 'NULL', false));
          }
          //
          $data = $data->get(Query::GET_ARRAY);
          //
          return self::collect($data, $table, $key);
      }
code: public static function all()
      {
          $class = get_called_class();
          $object = new $class();
          $table = $object->_table;
          $key = $object->_keyName;
          //
          $data = Query::table($table)->select('*')->where("'true'", '=', 'true');
          //
          if ($object->_canKept) {
              $data = $data->orGroup(
              'and',
              Query::condition('deleted_at', '>', Time::current()),
              Query::condition('deleted_at', 'is', 'NULL', false));
          }
  
          if ($object->_canStashed) {
              $data = $data->orGroup(
              'and',
              Query::condition('appeared_at', '<=', Time::current()),
              Query::condition('appeared_at', 'is', 'NULL', false));
          }
          //
          $data = $data->get(Query::GET_ARRAY);
          //
          return self::collect($data, $table, $key);
      }
code_tokens: public static function all ( ) { $ class = get_called_class ( ) ; $ object = new $ class ( ) ; $ table = $ object -> _table ; $ key = $ object -> _keyName ; // $ data = Query :: table ( $ table ) -> select ( '*' ) -> where ( "'true'" , '=' , 'true' ) ; // if ( $ object -> _canKept ) { $ data = $ data -> orGroup ( 'and' , Query :: condition ( 'deleted_at' , '>' , Time :: current ( ) ) , Query :: condition ( 'deleted_at' , 'is' , 'NULL' , false ) ) ; } if ( $ object -> _canStashed ) { $ data = $ data -> orGroup ( 'and' , Query :: condition ( 'appeared_at' , '<=' , Time :: current ( ) ) , Query :: condition ( 'appeared_at' , 'is' , 'NULL' , false ) ) ; } // $ data = $ data -> get ( Query :: GET_ARRAY ) ; // return self :: collect ( $ data , $ table , $ key ) ; }
docstring: get collection of all data of the model from data table.
  
  @return Collection
docstring_tokens: get collection of all data of the model from data table .