本文整理汇总了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);
}