예제 #1
0
파일: Json.php 프로젝트: yeaha/owl-orm
 public function store($value, array $attribute)
 {
     $value = parent::store($value, $attribute);
     if ($this->isNull($value)) {
         return;
     }
     return \Owl\safe_json_encode($value, JSON_UNESCAPED_UNICODE);
 }
예제 #2
0
파일: Json.php 프로젝트: tempbottle/owl
 public function store($value, array $attribute)
 {
     $value = parent::store($value, $attribute);
     return $value ? json_encode($value, JSON_UNESCAPED_UNICODE) : null;
 }