當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DB_DataObject::staticGet方法代碼示例

本文整理匯總了PHP中DB_DataObject::staticGet方法的典型用法代碼示例。如果您正苦於以下問題:PHP DB_DataObject::staticGet方法的具體用法?PHP DB_DataObject::staticGet怎麽用?PHP DB_DataObject::staticGet使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在DB_DataObject的用法示例。


在下文中一共展示了DB_DataObject::staticGet方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: staticGet

 function staticGet($k, $v = NULL)
 {
     $i = DB_DataObject::staticGet('Status_network', $k, $v);
     // Don't use local process cache; if we're fetching multiple
     // times it's because we're reloading it in a long-running
     // process; we need a fresh copy!
     global $_DB_DATAOBJECT;
     unset($_DB_DATAOBJECT['CACHE']['status_network']);
     return $i;
 }
開發者ID:Br3nda,項目名稱:statusnet-debian,代碼行數:10,代碼來源:Status_network.php

示例2: getKV

 static function getKV($k, $v = null)
 {
     // TODO: This probably has to be converted to a non-static call
     $i = DB_DataObject::staticGet('Status_network_tag', $k, $v);
     // Don't use local process cache; if we're fetching multiple
     // times it's because we're reloading it in a long-running
     // process; we need a fresh copy!
     global $_DB_DATAOBJECT;
     unset($_DB_DATAOBJECT['CACHE']['status_network_tag']);
     return $i;
 }
開發者ID:bashrc,項目名稱:gnusocial-debian,代碼行數:11,代碼來源:Status_network_tag.php

示例3: unset

 function &staticGet($cls, $k, $v = null)
 {
     if (is_null($v)) {
         $v = $k;
         # XXX: HACK!
         $i = new $cls();
         $keys = $i->keys();
         $k = $keys[0];
         unset($i);
     }
     $i = Memcached_DataObject::getcached($cls, $k, $v);
     if ($i) {
         return $i;
     } else {
         $i = DB_DataObject::staticGet($cls, $k, $v);
         if ($i) {
             $i->encache();
         }
         return $i;
     }
 }
開發者ID:Br3nda,項目名稱:laconica,代碼行數:21,代碼來源:Memcached_DataObject.php

示例4: staticGet

 function staticGet($k, $v = NULL)
 {
     return DB_DataObject::staticGet('DataObjects_Playsms_featPoll_choice', $k, $v);
 }
開發者ID:laiello,項目名稱:ya-playsms,代碼行數:4,代碼來源:Playsms_featPoll_choice.php

示例5: staticGet

 static function staticGet($k, $v = NULL)
 {
     return DB_DataObject::staticGet('Comments', $k, $v);
 }
開發者ID:bharatm,項目名稱:NDL-VuFind,代碼行數:4,代碼來源:Comments.php


注:本文中的DB_DataObject::staticGet方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。