public function setJson($obj) { $this->selection = $obj['selection']; $this->weekly = CalemJson::setJson($obj['weekly']); $this->weeks = CalemJson::setJson($obj['weeks']); $this->months = CalemJson::setJson($obj['months']); $this->days = CalemJson::setJson($obj['days']); $this->dates = CalemJson::setJson($obj['dates']); $this->init(); }
public static function getReportByPath($path) { if (!file_exists($path)) { $rtn = null; } else { $f = file_get_contents($path); $php = unserialize($f); $rtn = CalemJson::setJson($php); } return $rtn; }
public function setJson($obj) { $this->tableLayout = CalemJson::setJson($obj['tableLayout']); $this->colLayout = CalemJson::setJson($obj['colLayout']); $this->rows = CalemJson::setJsonAsArray($obj['rows']); }
public function setJson($obj) { $this->listInfo = CalemJson::setJson($obj['listInfo']); }
public function setJson($obj) { $this->id = $obj['id']; $this->link = CalemJson::setJson($obj['link']); }
public function setJson($obj) { $this->id = $obj['id']; $this->acl = CalemJson::setJson($obj['acl']); $this->layout = $obj['layout'] ? CalemJson::setJson($obj['layout']) : null; }
public static function setJsonByMap($map) { if (!$map) { return null; } $rtn = array(); foreach ($map as $key => $val) { $o = CalemJson::setJson($val); $rtn[$key] = $o; } return $rtn; }
public function setJson($obj) { $this->viewLayout = CalemJson::setJsonAsArray($obj['viewLayout']); $this->gridLayout = CalemJson::setJson($obj['gridLayout']); }