getPlatforms() public static method

Get array of image's platforms
public static getPlatforms ( integer $accountId, integer $envId ) : array
$accountId integer
$envId integer
return array Array of platform's names
示例#1
0
文件: Images.php 项目: mheydt/scalr
 public function viewAction()
 {
     $this->restrictAccess('IMAGES');
     $this->response->page('ui/images/view.js', ['platforms' => Image::getPlatforms($this->user->getAccountId() ?: null, $this->getEnvironmentId(true))]);
 }