本文整理匯總了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;
}
示例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;
}
示例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;
}
}
示例4: staticGet
function staticGet($k, $v = NULL)
{
return DB_DataObject::staticGet('DataObjects_Playsms_featPoll_choice', $k, $v);
}
示例5: staticGet
static function staticGet($k, $v = NULL)
{
return DB_DataObject::staticGet('Comments', $k, $v);
}