/** * 2016-07-10 * @return array(string => string) */ public function asArray() { return dfc($this, function () { return df_map_k(function ($key, $value) { return $this->formatKV($key, $value); }, $this->primary() + ['Request URL' => $this->response()->requestUrl(), 'Request params' => df_tab_multiline(df_print_params($this->response()->requestP())), 'Response' => df_tab_multiline(df_print_params($this->response()->getData()))]); }); }
/** * 2015-04-05 * @used-by Df_Core_Block_Abstract::_prop() * @used-by Df_Core_Block_Template::_prop() * @used-by \Df\Core\O::_prop() * @param object $object * @param \Zend_Validate_Interface|\Zend_Filter_Interface|string $validator * @param string $key * @param bool $skipOnNull [optional] * @return \Zend_Validate_Interface|\Zend_Filter_Interface * @throws \Df\Core\Exception */ public static function resolveForProperty($object, $validator, $key, $skipOnNull = false) { /** @var \Zend_Validate_Interface|\Zend_Filter_Interface $result */ try { $result = self::resolve($validator, $skipOnNull); } catch (\Df\Core\Exception $e) { $e->comment(df_print_params(['Класс' => get_class($object), 'Свойство' => $key])); throw $e; } return $result; }