Source for file ConverterManager.php
Documentation is available at ConverterManager.php
* Teeple2 - PHP5 Web Application Framework inspired by Seasar2
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
* @author Mitsutaka Sato <miztaka@gmail.com>
* @license http://www.php.net/license/3_0.txt PHP License 3.0
const FIELD_ALL =
'__all';
public function execute(&$obj, &$config) {
foreach($config as $fieldName =>
$fieldConfig) {
foreach($fieldConfig as $converterName =>
$attr) {
foreach($attr as $key =>
$value) {
$converter->$key =
$value;
if ($fieldName ==
self::FIELD_ALL) {
$keys =
array($fieldName);
foreach ($keys as $key) {
if (! $converter->convert($obj, $key)) {
$this->log->info("{
$converterName}は{
$key}に対して実行されませんでした。
");