/** * Convert処理を実行 * */ public function prefilter() { if ($this->isCompleteAction()) { $this->log->info("CompleteActionフラグが立っているため、Converterは実行されませんでした。"); return; } $attributes = $this->getAttributes(); if (is_array($attributes) && count($attributes) > 0) { $this->converterManager->execute($attributes); } return; }
/** * Converterを実行します。 * * @param Teeple_ActionBase $action * @param array $params */ private function doConverter($action, &$params) { $className = get_class($action); if (!defined($className . "::CONVERTER_CONFIG")) { return; } $yamlConfig = Horde_Yaml::load(constant($className . "::CONVERTER_CONFIG")); if (!is_array($yamlConfig)) { throw new Teeple_Exception("Converterの設定を解析できませんでした。"); } //$this->log->debug(var_export($yamlConfig, true)); $this->converterManager->execute($params, $yamlConfig); }