Initial import
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user