public function getAccountsTypes()
  {
    //Is Group: Further accounts can be made under Groups, but entries can be made against non-Groups
    $accountTypes = array();

    $this->AccountType->byOrganization($this->AuthenticationManager->getCurrentUserOrganizationId())->each(function($AccountType) use (&$accountTypes)
    {
      array_push($accountTypes, array('label'=> $AccountType->name, 'value'=>$AccountType->id));
    });

    return $accountTypes;
  }
public function getAccountsTypes()
  {
    //Is Group: Further accounts can be made under Groups, but entries can be made against non-Groups
    $accountTypes = array();

    $this->AccountType->byOrganization($this->AuthenticationManager->getCurrentUserOrganizationId())->each(function($AccountType) use (&$accountTypes)
    {
      array_push($accountTypes, array('label'=> $AccountType->name, 'value'=>$AccountType->id));
    });

    return $accountTypes;
  }
public function getAccountsTypes ( ) { //Is Group: Further accounts can be made under Groups, but entries can be made against non-Groups $ accountTypes = array ( ) ; $ this -> AccountType -> byOrganization ( $ this -> AuthenticationManager -> getCurrentUserOrganizationId ( ) ) -> each ( function ( $ AccountType ) use ( & $ accountTypes ) { array_push ( $ accountTypes , array ( 'label' => $ AccountType -> name , 'value' => $ AccountType -> id ) ) ; } ) ; return $ accountTypes ; }
Get organization accounts types

@return array
An array of arrays as follows: array( array('label'=>$name0, 'value'=>$id0), array('label'=>$name1, 'value'=>$id1),…)
Get organization accounts types