22 lines
429 B
PHP
22 lines
429 B
PHP
<?php
|
|
namespace app\models;
|
|
|
|
/**
|
|
* Class Partner
|
|
* @package app\models
|
|
* @property int $id
|
|
* @property string $name
|
|
* @property string $key
|
|
* @property $is_active
|
|
*/
|
|
class Partner extends _Base
|
|
{
|
|
public static function partnerList() {
|
|
$partnerList = [];
|
|
foreach (self::find()->all() as $partner) {
|
|
$partnerList[$partner->id] = $partner->name;
|
|
}
|
|
return $partnerList;
|
|
}
|
|
}
|