Initial import
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
namespace app\models;
|
||||
|
||||
/**
|
||||
* Class Partner
|
||||
* @package app\models
|
||||
* @property int $id
|
||||
* @property string $name
|
||||
* @property string $key
|
||||
*/
|
||||
class Partner extends _Base
|
||||
{
|
||||
public static function partnerList() {
|
||||
$partnerList = [];
|
||||
foreach (self::find()->all() as $partner) {
|
||||
$partnerList[$partner->id] = $partner->name;
|
||||
}
|
||||
return $partnerList;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user