| @@ 174-185 (lines=12) @@ | ||
| 171 | * |
|
| 172 | * @return void |
|
| 173 | */ |
|
| 174 | public function statuses() { |
|
| 175 | $locale = self::defaultLocale(); |
|
| 176 | $model = SCallbackStatusesQuery::create() |
|
| 177 | ->joinWithI18n($locale, Criteria::JOIN) |
|
| 178 | ->orderBy('IsDefault', Criteria::DESC) |
|
| 179 | ->orderById(Criteria::ASC) |
|
| 180 | ->find(); |
|
| 181 | ||
| 182 | assetManager::create() |
|
| 183 | ->setData(compact('model', 'locale')) |
|
| 184 | ->renderAdmin('status_list'); |
|
| 185 | } |
|
| 186 | ||
| 187 | /** |
|
| 188 | * Create new status |
|
| @@ 415-423 (lines=9) @@ | ||
| 412 | * |
|
| 413 | * @return void |
|
| 414 | */ |
|
| 415 | public function themes() { |
|
| 416 | $model = SCallbackThemesQuery::create() |
|
| 417 | ->joinWithI18n(\MY_Controller::defaultLocale(), Criteria::JOIN) |
|
| 418 | ->orderByPosition() |
|
| 419 | ->orderById(Criteria::ASC) |
|
| 420 | ->find(); |
|
| 421 | $locale = self::defaultLocale(); |
|
| 422 | ||
| 423 | assetManager::create()->setData(compact('model', 'locale'))->renderAdmin('themes_list'); |
|
| 424 | } |
|
| 425 | ||
| 426 | public function createTheme() { |
|