👁 查看:opGadgetConfigConfigHandler.class.php
路径:/virtual/bigbrother/sns/lib/config/opGadgetConfigConfigHandler.class.php
大小:823 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.
 */

/**
 * opGadgetConfigConfigHandler
 *
 * @package    OpenPNE
 * @subpackage config
 * @author     Shogo Kawahara <kawahara@tejimaya.net>
 */
class opGadgetConfigConfigHandler extends sfYamlConfigHandler
{
  public function execute($configFiles)
  {
    $prefix = strtolower($this->getParameterHolder()->get('prefix', ''));

    $config = $this->parseYamls($configFiles);

    $format = "<?php\n"
            . "sfConfig::add(array('%s' => %s));";
    $result = sprintf($format, 'op_gadget_'.$prefix.'config', var_export($config, true));
    return $result;
  }
}
ページが見つかりませんでした – Lumiere Shop
ここを指しているリンクに誤りがあったようです。検索してみるのはいかがですか ?
お買い物カゴ