public function log($text) { $this->debugLog .= 'Line ' . $this->ixml->getCurrentDebugLine() . ': ' . $text . "\n"; }
/** * Returns the user details * * @param string|int $id The user ID or full login name * @param bool $allowPeerUsers Optional. If TRUE and the method was called * by a plugin, users from the same company account but not managed by * the authenticated user can be returned as well. If FALSE, only * subordinate users will be returned. Default is FALSE. * @return array An associative array of user properties. */ public function do_details($id = null, $allowPeerUsers = false) { $user = $this->requireUser(); /* @var $user User */ if ((string) $id !== '') { // Check if it is a plugin execution $user = (PluginIXml::inPlugin() and $allowPeerUsers) ? $this->getPeerUser($user->getAccountId(), $id) : $user->getSubordinate($id); } return EntityArray::from($user) + array('Properties' => $user->getProperties()); }
public function setIdentifier($identifier) { return parent::setIdentifier(PluginIXml::getIncludeFileName($identifier)); }