✏️ 编辑:GadgetConfigPeer.php
路径:
/virtual/bigbrother/sns/lib/model/GadgetConfigPeer.php
大小:850 B · 修改:2010-08-10 13:59:42 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php /** * This file is part of the OpenPNE package. * (c) OpenPNE Project (http://www.openpne.jp/) * * For the full copyright and license information, please view the LICENSE * file and the NOTICE file that were distributed with this source code. */ class GadgetConfigPeer extends BaseGadgetConfigPeer { static protected $results; static public function retrieveByGadgetIdAndName($gadgetId, $name) { $results = self::getResults(); return (isset($results[$gadgetId][$name])) ? $results[$gadgetId][$name] : null; } static protected function getResults() { if (is_null(self::$results)) { self::$results = array(); foreach (self::doSelect(new Criteria()) as $object) { self::$results[$object->getGadgetId()][$object->getName()] = $object; } } return self::$results; } }
💾 保存
取消
保存为 UTF-8,换行统一为 LF