public static function current_account_member_of_admins() { if (!isset(self::$account_is_admin)) { self::$account_is_admin = false; if ($GLOBALS['phpgw']->acl->check('run', phpgwapi_acl::READ, 'admin') || $GLOBALS['phpgw']->acl->check('admin', phpgwapi_acl::ADD, 'booking')) { self::$account_is_admin = true; } } return self::$account_is_admin; }
protected function current_account_member_of_admins() { return booking_account_helper::current_account_member_of_admins(); }
protected function _set_created_by($field, &$entity) { $params = current(self::$AUTO_CREATED_BY); $entity[$field] = $this->_marshal(booking_account_helper::current_account_id(), $params['type']); }
/** * @see booking_account_helper */ public static function current_account_fullname() { return booking_account_helper::current_account_fullname(); }