public function init() { if ($this->user && $this->user->getType() != Scalr_Account_User::TYPE_SCALR_ADMIN) { $this->billing = Scalr_Billing::init()->loadByAccount($this->user->getAccount()); } }
public function getContent($params = array()) { $this->request->restrictAccess(Acl::RESOURCE_ADMINISTRATION_BILLING); $billing = Scalr_Billing::init()->loadByAccount($this->user->getAccount()); return $billing->getInfo(); }