25 lines
416 B
PHP
25 lines
416 B
PHP
<?php
|
|
|
|
|
|
namespace app\models;
|
|
|
|
/**
|
|
* Class Subscriptions
|
|
* @package app\models
|
|
* @property $price
|
|
* @property $name
|
|
* @property $name_en
|
|
* @property $text
|
|
* @property $text_en
|
|
*/
|
|
class Subscriptions extends _Base
|
|
{
|
|
public static function getList() {
|
|
$list = [];
|
|
foreach (self::find()->all() as $item) {
|
|
$list[$item->id] = $item->name;
|
|
}
|
|
return $list;
|
|
}
|
|
}
|