yii\data\DataProviderInterface::getModels PHP Метод

getModels() публичный Метод

Returns the data models in the current page.
public getModels ( ) : array
Результат array the list of data models in the current page.
    public function getModels();

Usage Example

 /**
  * @inheritdoc
  */
 public function run()
 {
     /* @var $formatter Formatter */
     $formatter = Yii::$app->formatter;
     $prepodavatel = $formatter->asFizLico($this->zanyatie->prepodavatel_rel);
     $date = $formatter->asDate($this->zanyatie->data);
     $interval = $formatter->asZanyatieTimeInterval($this->zanyatie->nomer, Formatter::ZANYATIE_TIME_INTERVAL_FORMAT_FROM_TO);
     return Html::tag('p', "{$date} {$interval} преподаватель {$prepodavatel} занят в:") . "\n" . $this->renderKursy($this->dataProvider->getModels());
 }
All Usage Examples Of yii\data\DataProviderInterface::getModels