/** * @method * * Get Task List * * @name getZimbraTaskList * @label Get Task Lists from Zimbra Server * * @param string | $ServerUrl | Server name and port where Zimbra exists | zimbra.server:port * @param string | $username| Valid username to connect to Zimbra server * @param string | $preAuthKey | Server Key for SSO authentication * * @return string | $result | Response * */ function getZimbraTaskList($ServerUrl, $username, $preAuthKey) { $xXmlArray = array(); $xXmlArray1 = array(); $zimbra = new Zimbra($username, $ServerUrl, $preAuthKey); $connectionResult = $zimbra->connect(); if (!$connectionResult) { return "Check userName or Server URL"; } $sXmlArray = array(); $sXmlArray = $zimbra->getTasks(); $aXmlArray = @G::json_decode(@G::json_encode($sXmlArray), 1); $serializeResult = serialize($aXmlArray); // serializing the Array for Returning. return $serializeResult; }