示例#1
0
文件: ixml.inc.php 项目: dapepe/tymio
 public function log($text)
 {
     $this->debugLog .= 'Line ' . $this->ixml->getCurrentDebugLine() . ': ' . $text . "\n";
 }
示例#2
0
文件: user.php 项目: dapepe/tymio
 /**
  * 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());
 }
示例#3
0
文件: Plugin.php 项目: dapepe/tymio
 public function setIdentifier($identifier)
 {
     return parent::setIdentifier(PluginIXml::getIncludeFileName($identifier));
 }