• Homepage
  • Service
  • Php
  • Account

Account

Account information

Get information of the active account.

Example

Show account name

$name = $this->get('account')->getName();

Storage

$Account->getStorage()->getDir();         // var/www/salaiset/account/
$Account->getStorage()->getTempDir();     // var/www/html/account/temp

Methods

  • Asset

  • getUrl()
    Http url to account directory
  • getAsset($file)
    Get url to a file in account dir
  • isAsset($file)
    Return true, if account has given asset
  • includeAsset($file)
    Get html META tag to include asset file
  • Data

  • getId()
    Account id number
  • getName()
    Technical name of the account
  • getCompany()
    Name of the company
  • File

  • getDir()
    Server path to account directory
  • getFile($file)
    Path to a file in account dir
  • isFile($file)
    Return TRUE, if file exists
  • getPrivateDir()
    Server path to account private directory
  • PHP

  • getClass($name[,$arg])
    Return new instance of account specifig class
  • Preferences

  • getConfig([$name])
    Account config
  • getInfo()
    Account info