'key', 'model'=>'longstring', 'data'=>'longstring', 'cell'=>'int', 'column'=>'int', 'minified' => 'int', 'dashboard' => 'int' ); function __construct(){ parent::__construct(); $this->dashboard = 0; } public function data($data=null){ if(empty($data)){ $array = json_decode($this->data,true); return is_array($array)?$array:array(); }else{ $this->data = json_encode($data); } } } ?>