예제 #1
0
파일: main.php 프로젝트: mage2pro/core
/**
 * 2016-09-08
 * @param string|object $caller
 * @param string|mixed[] $data
 * @param string|null $suffix [optional]
 * @return void
 */
function dfp_report($caller, $data, $suffix = null)
{
    df_report(df_ccc('--', 'mage2.pro/' . dfp_method_code($caller) . '-{date}--{time}', $suffix) . '.log', !is_array($data) ? $data : df_json_encode_pretty($data));
}
예제 #2
0
파일: json.php 프로젝트: mage2pro/core
/**
 * 2015-12-09
 * @param mixed $data
 * @return string
 */
function df_json_encode($data)
{
    return df_is_dev() ? df_json_encode_pretty($data) : json_encode($data);
}
예제 #3
0
 /**
  * 2015-12-07
  * @used-by \Df\Framework\Form\Element\FieldsetBackend::dfSaveBefore()
  * @return void
  */
 protected function valueSerialize()
 {
     $this->setValue(df_json_encode_pretty($this->processA($this->value())));
 }