PageRenderTime 71ms CodeModel.GetById 10ms app.highlight 38ms RepoModel.GetById 1ms app.codeStats 2ms

/docs/html/__filesource/fsource_yos-social-php__Yahoo.inc.html

http://github.com/yahoo/yos-social-php
HTML | 2027 lines | 2026 code | 0 blank | 1 comment | 0 complexity | 6779fce4cda906a152a917884693db08 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1<?xml version="1.0" encoding="iso-8859-1"?>
  2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3  <html xmlns="http://www.w3.org/1999/xhtml">
  4		<head>
  5			<!-- template designed by Marco Von Ballmoos -->
  6			<title>File Source for Yahoo.inc</title>
  7			<link rel="stylesheet" href="../media/stylesheet.css" />
  8			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
  9		</head>
 10		<body>
 11						<h1>Source for file Yahoo.inc</h1>
 12<p>Documentation is available at <a href="../yos-social-php/_Yahoo.inc.html">Yahoo.inc</a></p>
 13<div class="src-code">
 14<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php">&lt;?php</span></div></li>
 15<li><div class="src-line"><a name="a2"></a>&nbsp;</div></li>
 16<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li>
 17<li><div class="src-line"><a name="a4"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;YOS&nbsp;PHP&nbsp;SDK&nbsp;for&nbsp;accessing&nbsp;social&nbsp;and&nbsp;data&nbsp;apis&nbsp;at&nbsp;Yahoo!</span></div></li>
 18<li><div class="src-line"><a name="a5"></a><span class="src-doc">&nbsp;*</span></div></li>
 19<li><div class="src-line"><a name="a6"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;</span><span class="src-doc-coretag">@package</span><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yos-social-php</span></div></li>
 20<li><div class="src-line"><a name="a7"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;</span><span class="src-doc-coretag">@author</span><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Yahoo!&nbsp;Developer&nbsp;Network</span></div></li>
 21<li><div class="src-line"><a name="a8"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;</span><span class="src-doc-coretag">@example</span><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://developer.yahoo.com/social/sdk/php/</span></div></li>
 22<li><div class="src-line"><a name="a9"></a><span class="src-doc">&nbsp;*</span></div></li>
 23<li><div class="src-line"><a name="a10"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;</span><span class="src-doc-coretag">@copyright</span><span class="src-doc">&nbsp;&nbsp;&nbsp;Copyright&nbsp;(c)&nbsp;2009&nbsp;Yahoo!&nbsp;Inc.&nbsp;All&nbsp;rights&nbsp;reserved.</span></div></li>
 24<li><div class="src-line"><a name="a11"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;</span><span class="src-doc-coretag">@license</span><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BSD&nbsp;License&nbsp;(http://www.opensource.org/licenses/bsd-license.php)</span></div></li>
 25<li><div class="src-line"><a name="a12"></a><span class="src-doc">&nbsp;*</span></div></li>
 26<li><div class="src-line"><a name="a13"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;The&nbsp;copyrights&nbsp;embodied&nbsp;in&nbsp;the&nbsp;content&nbsp;of&nbsp;this&nbsp;file&nbsp;are&nbsp;licensed&nbsp;under&nbsp;the</span></div></li>
 27<li><div class="src-line"><a name="a14"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;BSD&nbsp;(revised)&nbsp;open&nbsp;source&nbsp;license.</span></div></li>
 28<li><div class="src-line"><a name="a15"></a><span class="src-doc">&nbsp;*</span></div></li>
 29<li><div class="src-line"><a name="a16"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;Redistribution&nbsp;and&nbsp;use&nbsp;of&nbsp;this&nbsp;software&nbsp;in&nbsp;source&nbsp;and&nbsp;binary&nbsp;forms,&nbsp;with</span></div></li>
 30<li><div class="src-line"><a name="a17"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;or&nbsp;without&nbsp;modification,&nbsp;are&nbsp;permitted&nbsp;provided&nbsp;that&nbsp;the&nbsp;following</span></div></li>
 31<li><div class="src-line"><a name="a18"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;conditions&nbsp;are&nbsp;met:</span></div></li>
 32<li><div class="src-line"><a name="a19"></a><span class="src-doc">&nbsp;*</span></div></li>
 33<li><div class="src-line"><a name="a20"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;*&nbsp;Redistributions&nbsp;of&nbsp;source&nbsp;code&nbsp;must&nbsp;retain&nbsp;the&nbsp;above</span></div></li>
 34<li><div class="src-line"><a name="a21"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;copyright&nbsp;notice,&nbsp;this&nbsp;list&nbsp;of&nbsp;conditions&nbsp;and&nbsp;the</span></div></li>
 35<li><div class="src-line"><a name="a22"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;following&nbsp;disclaimer.</span></div></li>
 36<li><div class="src-line"><a name="a23"></a><span class="src-doc">&nbsp;*</span></div></li>
 37<li><div class="src-line"><a name="a24"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;*&nbsp;Redistributions&nbsp;in&nbsp;binary&nbsp;form&nbsp;must&nbsp;reproduce&nbsp;the&nbsp;above</span></div></li>
 38<li><div class="src-line"><a name="a25"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;copyright&nbsp;notice,&nbsp;this&nbsp;list&nbsp;of&nbsp;conditions&nbsp;and&nbsp;the</span></div></li>
 39<li><div class="src-line"><a name="a26"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;following&nbsp;disclaimer&nbsp;in&nbsp;the&nbsp;documentation&nbsp;and/or&nbsp;other</span></div></li>
 40<li><div class="src-line"><a name="a27"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;materials&nbsp;provided&nbsp;with&nbsp;the&nbsp;distribution.</span></div></li>
 41<li><div class="src-line"><a name="a28"></a><span class="src-doc">&nbsp;*</span></div></li>
 42<li><div class="src-line"><a name="a29"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;*&nbsp;Neither&nbsp;the&nbsp;name&nbsp;of&nbsp;Yahoo!&nbsp;Inc.&nbsp;nor&nbsp;the&nbsp;names&nbsp;of&nbsp;its</span></div></li>
 43<li><div class="src-line"><a name="a30"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contributors&nbsp;may&nbsp;be&nbsp;used&nbsp;to&nbsp;endorse&nbsp;or&nbsp;promote&nbsp;products</span></div></li>
 44<li><div class="src-line"><a name="a31"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;derived&nbsp;from&nbsp;this&nbsp;software&nbsp;without&nbsp;specific&nbsp;prior</span></div></li>
 45<li><div class="src-line"><a name="a32"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;written&nbsp;permission&nbsp;of&nbsp;Yahoo!&nbsp;Inc.</span></div></li>
 46<li><div class="src-line"><a name="a33"></a><span class="src-doc">&nbsp;*</span></div></li>
 47<li><div class="src-line"><a name="a34"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;THIS&nbsp;SOFTWARE&nbsp;IS&nbsp;PROVIDED&nbsp;BY&nbsp;THE&nbsp;COPYRIGHT&nbsp;HOLDERS&nbsp;AND&nbsp;CONTRIBUTORS&nbsp;&quot;AS&nbsp;IS&quot;</span></div></li>
 48<li><div class="src-line"><a name="a35"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;AND&nbsp;ANY&nbsp;EXPRESS&nbsp;OR&nbsp;IMPLIED&nbsp;WARRANTIES,&nbsp;INCLUDING,&nbsp;BUT&nbsp;NOT&nbsp;LIMITED&nbsp;TO,&nbsp;THE</span></div></li>
 49<li><div class="src-line"><a name="a36"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;IMPLIED&nbsp;WARRANTIES&nbsp;OF&nbsp;MERCHANTABILITY&nbsp;AND&nbsp;FITNESS&nbsp;FOR&nbsp;A&nbsp;PARTICULAR&nbsp;PURPOSE&nbsp;ARE</span></div></li>
 50<li><div class="src-line"><a name="a37"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;DISCLAIMED.&nbsp;IN&nbsp;NO&nbsp;EVENT&nbsp;SHALL&nbsp;THE&nbsp;COPYRIGHT&nbsp;OWNER&nbsp;OR&nbsp;CONTRIBUTORS&nbsp;BE&nbsp;LIABLE</span></div></li>
 51<li><div class="src-line"><a name="a38"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;FOR&nbsp;ANY&nbsp;DIRECT,&nbsp;INDIRECT,&nbsp;INCIDENTAL,&nbsp;SPECIAL,&nbsp;EXEMPLARY,&nbsp;OR&nbsp;CONSEQUENTIAL</span></div></li>
 52<li><div class="src-line"><a name="a39"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;DAMAGES&nbsp;(INCLUDING,&nbsp;BUT&nbsp;NOT&nbsp;LIMITED&nbsp;TO,&nbsp;PROCUREMENT&nbsp;OF&nbsp;SUBSTITUTE&nbsp;GOODS&nbsp;OR</span></div></li>
 53<li><div class="src-line"><a name="a40"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;SERVICES;&nbsp;LOSS&nbsp;OF&nbsp;USE,&nbsp;DATA,&nbsp;OR&nbsp;PROFITS;&nbsp;OR&nbsp;BUSINESS&nbsp;INTERRUPTION)&nbsp;HOWEVER</span></div></li>
 54<li><div class="src-line"><a name="a41"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;CAUSED&nbsp;AND&nbsp;ON&nbsp;ANY&nbsp;THEORY&nbsp;OF&nbsp;LIABILITY,&nbsp;WHETHER&nbsp;IN&nbsp;CONTRACT,&nbsp;STRICT&nbsp;LIABILITY,</span></div></li>
 55<li><div class="src-line"><a name="a42"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;OR&nbsp;TORT&nbsp;(INCLUDING&nbsp;NEGLIGENCE&nbsp;OR&nbsp;OTHERWISE)&nbsp;ARISING&nbsp;IN&nbsp;ANY&nbsp;WAY&nbsp;OUT&nbsp;OF&nbsp;THE&nbsp;USE</span></div></li>
 56<li><div class="src-line"><a name="a43"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;OF&nbsp;THIS&nbsp;SOFTWARE,&nbsp;EVEN&nbsp;IF&nbsp;ADVISED&nbsp;OF&nbsp;THE&nbsp;POSSIBILITY&nbsp;OF&nbsp;SUCH&nbsp;DAMAGE.</span></div></li>
 57<li><div class="src-line"><a name="a44"></a><span class="src-doc">&nbsp;*</span></div></li>
 58<li><div class="src-line"><a name="a45"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;Please&nbsp;see&nbsp;the&nbsp;Yahoo!&nbsp;Developer&nbsp;Network&nbsp;forums&nbsp;for&nbsp;support:&nbsp;http://developer.yahoo.net/forum/</span></div></li>
 59<li><div class="src-line"><a name="a46"></a><span class="src-doc">&nbsp;*</span></div></li>
 60<li><div class="src-line"><a name="a47"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;Documentation:&nbsp;http://developer.yahoo.com/social/sdk/php/</span></div></li>
 61<li><div class="src-line"><a name="a48"></a><span class="src-doc">&nbsp;*/</span></div></li>
 62<li><div class="src-line"><a name="a49"></a>&nbsp;</div></li>
 63<li><div class="src-line"><a name="a50"></a><span class="src-comm">//&nbsp;Use&nbsp;OAuthConsumer&nbsp;as&nbsp;a&nbsp;test&nbsp;to&nbsp;see&nbsp;if&nbsp;any&nbsp;other&nbsp;instances&nbsp;of&nbsp;OAuth.php&nbsp;may</span></div></li>
 64<li><div class="src-line"><a name="a51"></a><span class="src-comm">//&nbsp;have&nbsp;been&nbsp;included.&nbsp;require_once()&nbsp;won't&nbsp;catch&nbsp;situations&nbsp;where&nbsp;multiple</span></div></li>
 65<li><div class="src-line"><a name="a52"></a><span class="src-comm">//&nbsp;copies&nbsp;of&nbsp;OAuth.php&nbsp;are&nbsp;included&nbsp;by&nbsp;different&nbsp;parts&nbsp;of&nbsp;an&nbsp;application.</span></div></li>
 66<li><div class="src-line"><a name="a53"></a><span class="src-key">if</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/class_exists">class_exists</a><span class="src-sym">(</span><span class="src-str">&quot;OAuthConsumer&quot;</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
 67<li><div class="src-line"><a name="a54"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-inc">require_once</span><span class="src-sym">(</span><span class="src-str">&quot;OAuth.php&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
 68<li><div class="src-line"><a name="a55"></a><span class="src-sym">}</span></div></li>
 69<li><div class="src-line"><a name="a56"></a>&nbsp;</div></li>
 70<li><div class="src-line"><a name="a57"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">&quot;OAUTH_PARAMS_IN_HEADERS&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;HEADERS&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
 71<li><div class="src-line"><a name="a58"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">&quot;OAUTH_PARAMS_IN_POST_BODY&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;POSTBODY&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
 72<li><div class="src-line"><a name="a59"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">&quot;OAUTH_SIGNATURE_PLAINTEXT&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;PLAINTEXT&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
 73<li><div class="src-line"><a name="a60"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">&quot;OAUTH_SIGNATURE_HMAC_SHA1&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;HMAC_SHA1&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
 74<li><div class="src-line"><a name="a61"></a>&nbsp;</div></li>
 75<li><div class="src-line"><a name="a62"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">&quot;YAHOO_YAP_SESSION_TYPE&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;YAHOO_YAP_SESSION_TYPE&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
 76<li><div class="src-line"><a name="a63"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">&quot;YAHOO_OAUTH_RT_SESSION_TYPE&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;YAHOO_OAUTH_RT_SESSION_TYPE&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
 77<li><div class="src-line"><a name="a64"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">&quot;YAHOO_OAUTH_AT_SESSION_TYPE&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;YAHOO_OAUTH_AT_SESSION_TYPE&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
 78<li><div class="src-line"><a name="a65"></a>&nbsp;</div></li>
 79<li><div class="src-line"><a name="a66"></a><span class="src-var">$YahooConfig&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span></div></li>
 80<li><div class="src-line"><a name="a67"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">&quot;SOCIAL_WS_HOSTNAME&quot;&nbsp;</span>=&gt;&nbsp;<span class="src-str">&quot;social.yahooapis.com&quot;</span><span class="src-sym">,</span></div></li>
 81<li><div class="src-line"><a name="a68"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">&quot;PRESENCE_WS_HOSTNAME&quot;&nbsp;</span>=&gt;&nbsp;<span class="src-str">&quot;social.yahooapis.com&quot;</span><span class="src-sym">,</span></div></li>
 82<li><div class="src-line"><a name="a69"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">&quot;UPDATES_WS_HOSTNAME&quot;&nbsp;</span>=&gt;&nbsp;<span class="src-str">&quot;social.yahooapis.com&quot;</span><span class="src-sym">,</span></div></li>
 83<li><div class="src-line"><a name="a70"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">&quot;QUERY_WS_HOSTNAME&quot;&nbsp;</span>=&gt;&nbsp;<span class="src-str">&quot;query.yahooapis.com&quot;</span><span class="src-sym">,</span></div></li>
 84<li><div class="src-line"><a name="a71"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">&quot;OAUTH_HOSTNAME&quot;&nbsp;</span>=&gt;&nbsp;<span class="src-str">&quot;api.login.yahoo.com&quot;</span><span class="src-sym">,</span></div></li>
 85<li><div class="src-line"><a name="a72"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">&quot;YAP_WS_HOSTNAME&quot;&nbsp;</span>=&gt;&nbsp;<span class="src-str">&quot;appstore.apps.yahooapis.com&quot;</span></div></li>
 86<li><div class="src-line"><a name="a73"></a><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
 87<li><div class="src-line"><a name="a74"></a>&nbsp;</div></li>
 88<li><div class="src-line"><a name="a75"></a><span class="src-var">$GLOBAL_YAHOO_SESSION&nbsp;</span>=&nbsp;<span class="src-id">NULL</span><span class="src-sym">;</span></div></li>
 89<li><div class="src-line"><a name="a76"></a>&nbsp;</div></li>
 90<li><div class="src-line"><a name="a77"></a><span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG&nbsp;</span>=&nbsp;<span class="src-id">false</span><span class="src-sym">;</span></div></li>
 91<li><div class="src-line"><a name="a78"></a><span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION&nbsp;</span>=&nbsp;<span class="src-str">&quot;LOG&quot;</span><span class="src-sym">;</span></div></li>
 92<li><div class="src-line"><a name="a79"></a>&nbsp;</div></li>
 93<li><div class="src-line"><a name="a80"></a><span class="src-key">global&nbsp;</span><span class="src-var">$YahooConfig</span><span class="src-sym">,&nbsp;</span><span class="src-var">$GLOBAL_YAHOO_SESSION</span><span class="src-sym">,&nbsp;</span><span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG</span><span class="src-sym">,&nbsp;</span><span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION</span><span class="src-sym">;</span></div></li>
 94<li><div class="src-line"><a name="a81"></a>&nbsp;</div></li>
 95<li><div class="src-line"><a name="a82"></a><span class="src-key">class&nbsp;</span><a href="../yos-social-php/YahooUtil.html">YahooUtil</a>&nbsp;<span class="src-sym">{</span></div></li>
 96<li><div class="src-line"><a name="a83"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../yos-social-php/YahooUtil.html#methodcurrent_url">current_url</a><span class="src-sym">(</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
 97<li><div class="src-line"><a name="a84"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><a href="http://www.php.net/sprintf">sprintf</a><span class="src-sym">(</span><span class="src-str">&quot;http://%s%s&quot;</span><span class="src-sym">,</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">&quot;HTTP_HOST&quot;</span><span class="src-sym">]</span><span class="src-sym">,</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">&quot;REQUEST_URI&quot;</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
 98<li><div class="src-line"><a name="a85"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
 99<li><div class="src-line"><a name="a86"></a>&nbsp;</div></li>
100<li><div class="src-line"><a name="a87"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../yos-social-php/YahooUtil.html#methodverify_signature">verify_signature</a><span class="src-sym">(</span><span class="src-var">$consumer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$token</span>=<span class="src-id">NULL</span><span class="src-sym">,&nbsp;</span><span class="src-var">$oauth_signature</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
101<li><div class="src-line"><a name="a88"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$oauth_signature_method&nbsp;</span>=&nbsp;<span class="src-key">new&nbsp;</span><span class="src-id"><a href="../OAuth/OAuthSignatureMethod_HMAC_SHA1.html">OAuthSignatureMethod_HMAC_SHA1</a></span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
102<li><div class="src-line"><a name="a89"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$oauth_consumer&nbsp;</span>=&nbsp;<span class="src-key">new&nbsp;</span><span class="src-id"><a href="../OAuth/OAuthConsumer.html">OAuthConsumer</a></span><span class="src-sym">(</span><span class="src-var">$consumer</span><span class="src-sym">-&gt;</span><span class="src-id">key</span><span class="src-sym">,&nbsp;</span><span class="src-var">$consumer</span><span class="src-sym">-&gt;</span><span class="src-id">secret</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
103<li><div class="src-line"><a name="a90"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$oauth_token&nbsp;</span>=&nbsp;<span class="src-sym">(</span><span class="src-var">$token</span><span class="src-sym">)&nbsp;</span>?&nbsp;<span class="src-key">new&nbsp;</span><span class="src-id"><a href="../OAuth/OAuthToken.html">OAuthToken</a></span><span class="src-sym">(</span><span class="src-var">$token</span><span class="src-sym">-&gt;</span><span class="src-id">key</span><span class="src-sym">,&nbsp;</span><span class="src-var">$token</span><span class="src-sym">-&gt;</span><span class="src-id">secret</span><span class="src-sym">)&nbsp;</span>:&nbsp;<span class="src-id">NULL</span><span class="src-sym">;</span></div></li>
104<li><div class="src-line"><a name="a91"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$oauth_request&nbsp;</span>=&nbsp;<span class="src-id"><a href="../OAuth/OAuthRequest.html">OAuthRequest</a></span><span class="src-sym">::</span><a href="../OAuth/OAuthRequest.html#methodfrom_request">from_request</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
105<li><div class="src-line"><a name="a92"></a>&nbsp;</div></li>
106<li><div class="src-line"><a name="a93"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$ok&nbsp;</span>=&nbsp;<span class="src-var">$oauth_signature_method</span><span class="src-sym">-&gt;</span><span class="src-id">check_signature</span><span class="src-sym">(</span><span class="src-var">$oauth_request</span><span class="src-sym">,&nbsp;</span><span class="src-var">$oauth_consumer</span><span class="src-sym">,&nbsp;</span><span class="src-var">$oauth_token</span><span class="src-sym">,&nbsp;</span><span class="src-var">$oauth_signature</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
107<li><div class="src-line"><a name="a94"></a>&nbsp;</div></li>
108<li><div class="src-line"><a name="a95"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$ok</span><span class="src-sym">;</span></div></li>
109<li><div class="src-line"><a name="a96"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
110<li><div class="src-line"><a name="a97"></a>&nbsp;</div></li>
111<li><div class="src-line"><a name="a98"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../yos-social-php/YahooUtil.html#methodis_yap_canvas">is_yap_canvas</a><span class="src-sym">(</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
112<li><div class="src-line"><a name="a99"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$_POST</span><span class="src-sym">[</span><span class="src-str">'yap_appid'</span><span class="src-sym">]</span><span class="src-sym">)</span></div></li>
113<li><div class="src-line"><a name="a100"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;isset<span class="src-sym">(</span><span class="src-var">$_POST</span><span class="src-sym">[</span><span class="src-str">'yap_view'</span><span class="src-sym">]</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
114<li><div class="src-line"><a name="a101"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
115<li><div class="src-line"><a name="a102"></a>&nbsp;</div></li>
116<li><div class="src-line"><a name="a103"></a>&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../yos-social-php/YahooUtil.html#methodis_response_error">is_response_error</a><span class="src-sym">(</span><span class="src-var">$response</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
117<li><div class="src-line"><a name="a104"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$response</span><span class="src-sym">)&nbsp;</span>||&nbsp;<span class="src-var">$response</span><span class="src-sym">[</span><span class="src-str">&quot;code&quot;</span><span class="src-sym">]&nbsp;</span>!=&nbsp;<span class="src-num">200</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
118<li><div class="src-line"><a name="a105"></a>&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
119<li><div class="src-line"><a name="a106"></a>&nbsp;</div></li>
120<li><div class="src-line"><a name="a107"></a><span class="src-sym">}</span></div></li>
121<li><div class="src-line"><a name="a108"></a>&nbsp;</div></li>
122<li><div class="src-line"><a name="a109"></a><span class="src-key">class&nbsp;</span><a href="../yos-social-php/YahooException.html">YahooException</a>&nbsp;<span class="src-key">extends&nbsp;</span><span class="src-id">Exception&nbsp;</span><span class="src-sym">{</span></div></li>
123<li><div class="src-line"><a name="a110"></a>&nbsp;</div></li>
124<li><div class="src-line"><a name="a111"></a><span class="src-sym">}</span></div></li>
125<li><div class="src-line"><a name="a112"></a>&nbsp;</div></li>
126<li><div class="src-line"><a name="a113"></a><span class="src-doc">/**</span></div></li>
127<li><div class="src-line"><a name="a114"></a><span class="src-doc">&nbsp;*&nbsp;Logging&nbsp;wrapper&nbsp;for&nbsp;the&nbsp;Yahoo&nbsp;objects.</span></div></li>
128<li><div class="src-line"><a name="a115"></a><span class="src-doc">&nbsp;*</span></div></li>
129<li><div class="src-line"><a name="a116"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-tag">@brief</span><span class="src-doc">&nbsp;Logging&nbsp;wrapper&nbsp;for&nbsp;the&nbsp;Yahoo&nbsp;objects.</span></div></li>
130<li><div class="src-line"><a name="a117"></a><span class="src-doc">&nbsp;*/</span></div></li>
131<li><div class="src-line"><a name="a118"></a><span class="src-key">class&nbsp;</span><a href="../yos-social-php/YahooLogger.html">YahooLogger</a>&nbsp;<span class="src-sym">{</span></div></li>
132<li><div class="src-line"><a name="a119"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-doc">/**</span></div></li>
133<li><div class="src-line"><a name="a120"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Log&nbsp;a&nbsp;message&nbsp;at&nbsp;the&nbsp;debug&nbsp;level.</span></div></li>
134<li><div class="src-line"><a name="a121"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></div></li>
135<li><div class="src-line"><a name="a122"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;</span><span class="src-doc-coretag">@param&nbsp;</span><span class="src-doc-type">$message&nbsp;</span><span class="src-doc">The&nbsp;message&nbsp;to&nbsp;log.</span></div></li>
136<li><div class="src-line"><a name="a123"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
137<li><div class="src-line"><a name="a124"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../yos-social-php/YahooLogger.html#methoddebug">debug</a><span class="src-sym">(</span><span class="src-var">$message</span><span class="src-sym">,&nbsp;</span><span class="src-var">$object&nbsp;</span>=&nbsp;<span class="src-id">NULL</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
138<li><div class="src-line"><a name="a125"></a>&nbsp;</div></li>
139<li><div class="src-line"><a name="a126"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">global&nbsp;</span><span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG</span><span class="src-sym">;</span></div></li>
140<li><div class="src-line"><a name="a127"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">global&nbsp;</span><span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION</span><span class="src-sym">;</span></div></li>
141<li><div class="src-line"><a name="a128"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
142<li><div class="src-line"><a name="a129"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION&nbsp;</span>==&nbsp;<span class="src-str">&quot;CONSOLE&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
143<li><div class="src-line"><a name="a130"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print<span class="src-sym">(</span><span class="src-str">&quot;</span><span class="src-str">DEBUG&nbsp;-&nbsp;<span class="src-var">$message</span>\n</span><span class="src-str">&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
144<li><div class="src-line"><a name="a131"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$object</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
145<li><div class="src-line"><a name="a132"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print<span class="src-sym">(</span><span class="src-str">&quot;DEBUG&nbsp;OBJECT&nbsp;-&nbsp;&quot;&nbsp;</span>.&nbsp;<a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$object</span><span class="src-sym">,&nbsp;</span><span class="src-id">true</span><span class="src-sym">)&nbsp;</span>.&nbsp;<span class="src-str">&quot;\n&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
146<li><div class="src-line"><a name="a133"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
147<li><div class="src-line"><a name="a134"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
148<li><div class="src-line"><a name="a135"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION&nbsp;</span>==&nbsp;<span class="src-str">&quot;LOG&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
149<li><div class="src-line"><a name="a136"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../yos-social-php/YahooLogger.html">YahooLogger</a></span><span class="src-sym">::</span><a href="../yos-social-php/YahooLogger.html#methoderror">error</a><span class="src-sym">(</span><span class="src-str">&quot;</span><span class="src-str">DEBUG&nbsp;-&nbsp;<span class="src-var">$message</span></span><span class="src-str">&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
150<li><div class="src-line"><a name="a137"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$object</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
151<li><div class="src-line"><a name="a138"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../yos-social-php/YahooLogger.html">YahooLogger</a></span><span class="src-sym">::</span><a href="../yos-social-php/YahooLogger.html#methoderror">error</a><span class="src-sym">(</span><span class="src-str">&quot;DEBUG&nbsp;OBJECT&nbsp;-&nbsp;&quot;&nbsp;</span>.&nbsp;<a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$object</span><span class="src-sym">,&nbsp;</span><span class="src-id">true</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
152<li><div class="src-line"><a name="a139"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
153<li><div class="src-line"><a name="a140"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
154<li><div class="src-line"><a name="a141"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
155<li><div class="src-line"><a name="a142"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
156<li><div class="src-line"><a name="a143"></a>&nbsp;</div></li>
157<li><div class="src-line"><a name="a144"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-doc">/**</span></div></li>
158<li><div class="src-line"><a name="a145"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Log&nbsp;a&nbsp;message&nbsp;at&nbsp;the&nbsp;info&nbsp;level.</span></div></li>
159<li><div class="src-line"><a name="a146"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></div></li>
160<li><div class="src-line"><a name="a147"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;</span><span class="src-doc-coretag">@param&nbsp;</span><span class="src-doc-type">$message&nbsp;</span><span class="src-doc">The&nbsp;message&nbsp;to&nbsp;log.</span></div></li>
161<li><div class="src-line"><a name="a148"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
162<li><div class="src-line"><a name="a149"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../yos-social-php/YahooLogger.html#methodinfo">info</a><span class="src-sym">(</span><span class="src-var">$message</span><span class="src-sym">,&nbsp;</span><span class="src-var">$object&nbsp;</span>=&nbsp;<span class="src-id">NULL</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
163<li><div class="src-line"><a name="a150"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">global&nbsp;</span><span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION</span><span class="src-sym">;</span></div></li>
164<li><div class="src-line"><a name="a151"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION&nbsp;</span>==&nbsp;<span class="src-str">&quot;CONSOLE&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
165<li><div class="src-line"><a name="a152"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print<span class="src-sym">(</span><span class="src-str">&quot;</span><span class="src-str">INFO&nbsp;-&nbsp;<span class="src-var">$message</span>\n</span><span class="src-str">&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
166<li><div class="src-line"><a name="a153"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$object</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
167<li><div class="src-line"><a name="a154"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print<span class="src-sym">(</span><span class="src-str">&quot;INFO&nbsp;OBJECT&nbsp;-&nbsp;&quot;&nbsp;</span>.&nbsp;<a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$object</span><span class="src-sym">,&nbsp;</span><span class="src-id">true</span><span class="src-sym">)&nbsp;</span>.&nbsp;<span class="src-str">&quot;\n&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
168<li><div class="src-line"><a name="a155"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
169<li><div class="src-line"><a name="a156"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
170<li><div class="src-line"><a name="a157"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION&nbsp;</span>==&nbsp;<span class="src-str">&quot;LOG&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
171<li><div class="src-line"><a name="a158"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../yos-social-php/YahooLogger.html">YahooLogger</a></span><span class="src-sym">::</span><a href="../yos-social-php/YahooLogger.html#methoderror">error</a><span class="src-sym">(</span><span class="src-str">&quot;</span><span class="src-str">INFO&nbsp;-&nbsp;<span class="src-var">$message</span></span><span class="src-str">&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
172<li><div class="src-line"><a name="a159"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$object</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
173<li><div class="src-line"><a name="a160"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../yos-social-php/YahooLogger.html">YahooLogger</a></span><span class="src-sym">::</span><a href="../yos-social-php/YahooLogger.html#methoderror">error</a><span class="src-sym">(</span><span class="src-str">&quot;INFO&nbsp;OBJECT&nbsp;-&nbsp;&quot;&nbsp;</span>.&nbsp;<a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$object</span><span class="src-sym">,&nbsp;</span><span class="src-id">true</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
174<li><div class="src-line"><a name="a161"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
175<li><div class="src-line"><a name="a162"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
176<li><div class="src-line"><a name="a163"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
177<li><div class="src-line"><a name="a164"></a>&nbsp;</div></li>
178<li><div class="src-line"><a name="a165"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-doc">/**</span></div></li>
179<li><div class="src-line"><a name="a166"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Log&nbsp;a&nbsp;message&nbsp;at&nbsp;the&nbsp;error&nbsp;level.</span></div></li>
180<li><div class="src-line"><a name="a167"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></div></li>
181<li><div class="src-line"><a name="a168"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;</span><span class="src-doc-coretag">@param&nbsp;</span><span class="src-doc-type">$message&nbsp;</span><span class="src-doc">The&nbsp;message&nbsp;to&nbsp;log.</span></div></li>
182<li><div class="src-line"><a name="a169"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
183<li><div class="src-line"><a name="a170"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../yos-social-php/YahooLogger.html#methoderror">error</a><span class="src-sym">(</span><span class="src-var">$message</span><span class="src-sym">,&nbsp;</span><span class="src-var">$object&nbsp;</span>=&nbsp;<span class="src-id">NULL</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
184<li><div class="src-line"><a name="a171"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">global&nbsp;</span><span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION</span><span class="src-sym">;</span></div></li>
185<li><div class="src-line"><a name="a172"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION&nbsp;</span>==&nbsp;<span class="src-str">&quot;CONSOLE&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
186<li><div class="src-line"><a name="a173"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print<span class="src-sym">(</span><span class="src-str">&quot;</span><span class="src-str">ERROR&nbsp;-&nbsp;<span class="src-var">$message</span>\n</span><span class="src-str">&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
187<li><div class="src-line"><a name="a174"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$object</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
188<li><div class="src-line"><a name="a175"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print<span class="src-sym">(</span><span class="src-str">&quot;ERROR&nbsp;OBJECT&nbsp;-&nbsp;&quot;&nbsp;</span>.&nbsp;<a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$object</span><span class="src-sym">,&nbsp;</span><span class="src-id">true</span><span class="src-sym">)&nbsp;</span>.&nbsp;<span class="src-str">&quot;\n&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
189<li><div class="src-line"><a name="a176"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
190<li><div class="src-line"><a name="a177"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
191<li><div class="src-line"><a name="a178"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION&nbsp;</span>==&nbsp;<span class="src-str">&quot;LOG&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
192<li><div class="src-line"><a name="a179"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../yos-social-php/YahooLogger.html">YahooLogger</a></span><span class="src-sym">::</span><a href="../yos-social-php/YahooLogger.html#methoderror">error</a><span class="src-sym">(</span><span class="src-str">&quot;</span><span class="src-str">ERROR&nbsp;-&nbsp;<span class="src-var">$message</span></span><span class="src-str">&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
193<li><div class="src-line"><a name="a180"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$object</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
194<li><div class="src-line"><a name="a181"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../yos-social-php/YahooLogger.html">YahooLogger</a></span><span class="src-sym">::</span><a href="../yos-social-php/YahooLogger.html#methoderror">error</a><span class="src-sym">(</span><span class="src-str">&quot;ERROR&nbsp;OBJECT&nbsp;-&nbsp;&quot;&nbsp;</span>.&nbsp;<a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$object</span><span class="src-sym">,&nbsp;</span><span class="src-id">true</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
195<li><div class="src-line"><a name="a182"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
196<li><div class="src-line"><a name="a183"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
197<li><div class="src-line"><a name="a184"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
198<li><div class="src-line"><a name="a185"></a>&nbsp;</div></li>
199<li><div class="src-line"><a name="a186"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-doc">/**</span></div></li>
200<li><div class="src-line"><a name="a187"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Enables/disables&nbsp;session&nbsp;debugging.</span></div></li>
201<li><div class="src-line"><a name="a188"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></div></li>
202<li><div class="src-line"><a name="a189"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;</span><span class="src-doc-coretag">@param&nbsp;</span><span class="src-doc-type">$debug&nbsp;</span><span class="src-doc">Boolean&nbsp;to&nbsp;enable/disable&nbsp;debugging.</span></div></li>
203<li><div class="src-line"><a name="a190"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
204<li><div class="src-line"><a name="a191"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../yos-social-php/YahooLogger.html#methodsetDebug">setDebug</a><span class="src-sym">(</span><span class="src-var">$debug</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
205<li><div class="src-line"><a name="a192"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">global&nbsp;</span><span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG</span><span class="src-sym">;</span></div></li>
206<li><div class="src-line"><a name="a193"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG&nbsp;</span>=&nbsp;(bool)&nbsp;<span class="src-var">$debug</span><span class="src-sym">;</span></div></li>
207<li><div class="src-line"><a name="a194"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
208<li><div class="src-line"><a name="a195"></a>&nbsp;</div></li>
209<li><div class="src-line"><a name="a196"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-doc">/**</span></div></li>
210<li><div class="src-line"><a name="a197"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Allows&nbsp;callers&nbsp;to&nbsp;configure&nbsp;where&nbsp;debugging&nbsp;output&nbsp;is&nbsp;sent.</span></div></li>
211<li><div class="src-line"><a name="a198"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></div></li>
212<li><div class="src-line"><a name="a199"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;</span><span class="src-doc-coretag">@param&nbsp;</span><span class="src-doc-type">$destination&nbsp;</span><span class="src-doc">&quot;LOG&quot;&nbsp;to&nbsp;use&nbsp;YahooLogger::error,&nbsp;&quot;CONSOLE&quot;&nbsp;to&nbsp;use&nbsp;printf,</span></div></li>
213<li><div class="src-line"><a name="a200"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;NULL&quot;&nbsp;to&nbsp;disable&nbsp;all&nbsp;logging&nbsp;output.</span></div></li>
214<li><div class="src-line"><a name="a201"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;</span><span class="src-doc-coretag">@return&nbsp;</span><span class="src-doc-type">boolean&nbsp;</span><span class="src-doc">True&nbsp;on&nbsp;success,&nbsp;false&nbsp;on&nbsp;failure.</span></div></li>
215<li><div class="src-line"><a name="a202"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
216<li><div class="src-line"><a name="a203"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">function&nbsp;</span><a href="../yos-social-php/YahooLogger.html#methodsetDebugDestination">setDebugDestination</a><span class="src-sym">(</span><span class="src-var">$destination</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
217<li><div class="src-line"><a name="a204"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">global&nbsp;</span><span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION</span><span class="src-sym">;</span></div></li>
218<li><div class="src-line"><a name="a205"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$destination&nbsp;</span>==&nbsp;<span class="src-str">&quot;LOG&quot;&nbsp;</span>||&nbsp;<span class="src-var">$destination&nbsp;</span>==&nbsp;<span class="src-str">&quot;CONSOLE&quot;&nbsp;</span>||</div></li>
219<li><div class="src-line"><a name="a206"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$destination&nbsp;</span>==&nbsp;<span class="src-str">&quot;NULL&quot;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
220<li><div class="src-line"><a name="a207"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION&nbsp;</span>=&nbsp;<span class="src-var">$destination</span><span class="src-sym">;</span></div></li>
221<li><div class="src-line"><a name="a208"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-id">true</span><span class="src-sym">;</span></div></li>
222<li><div class="src-line"><a name="a209"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
223<li><div class="src-line"><a name="a210"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">else&nbsp;</span><span class="src-sym">{</span></div><

Large files files are truncated, but you can click here to view the full file