init() public static method

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