/** * dispatch. Overrides EasyContactFormsBase::dispatch() * * invokes requested object methods * * @param array $dispmap * request data */ function dispatch($dispmap) { $dispmap = parent::dispatch($dispmap); if ($dispmap == NULL) { return NULL; } $dispmethod = $dispmap["m"]; switch ($dispmethod) { case 'allowPBLink': $this->allowPBLink($dispmap); return NULL; case 'setOptionValue': $this->setOptionValue($dispmap); return NULL; default: return $dispmap; } }
/** * update. Overrides EasyContactFormsBase::update() * * updates an object with request data * * @param array $request * request data * @param int $id * object id */ function update($request, $id) { $request = EasyContactFormsUtils::parseRequest($request, 'ListPosition', 'int'); $request = EasyContactFormsUtils::parseRequest($request, 'ValueField', 'boolean'); parent::update($request, $id); }
/** * getViews. Overrides EasyContactFormsBase::getViews() * * selects an object view to show on the client side * * @param array $vmap * request data */ function getViews($vmap) { $viewname = parent::getViews($vmap); switch ($viewname) { case 'detailedmain': return $this->getDetailedMainView($vmap); break; default: return ''; } }
/** * getViews. Overrides EasyContactFormsBase::getViews() * * selects an object view to show on the client side * * @param array $vmap * request data */ function getViews($vmap) { $viewname = parent::getViews($vmap); switch ($viewname) { case 'managemain': return $this->getManageMainView($vmap); break; default: return ''; } }
/** * dispatch. Overrides EasyContactFormsBase::dispatch() * * invokes requested object methods * * @param array $dispmap * request data */ function dispatch($dispmap) { $dispmap = parent::dispatch($dispmap); if ($dispmap == NULL) { return NULL; } $dispmethod = $dispmap["m"]; switch ($dispmethod) { case 'deletefile': $this->deletefile($dispmap); return NULL; case 'download': $this->download($dispmap); return NULL; case 'upload': $this->upload($dispmap); return NULL; default: return $dispmap; } }
/** * update. Overrides EasyContactFormsBase::update() * * updates an object with request data * * @param array $request * request data * @param int $id * object id */ function update($request, $id) { $request = EasyContactFormsUtils::parseRequest($request, 'CustomForms', 'int'); $request = EasyContactFormsUtils::parseRequest($request, 'Contacts', 'int'); parent::update($request, $id); }
/** * update * * filters out the object data from a request and puts it to a database * * @param array $request * object data to put to a database * @param int $id * object id */ function update($request, $id) { $request = (array) $request; $newcomment = NULL; if (isset($request['Comment']) && !empty($request['Comment'])) { $newcomment = $request['Comment']; unset($request['Comment']); $history = $this->getValue('History', $id); $fcomment = $this->formatComment($newcomment, $request); $request['History'] = $fcomment . $history; } parent::update($request, $id); }
/** * update. Overrides EasyContactFormsBase::update() * * updates an object with request data * * @param array $request * request data * @param int $id * object id */ function update($request, $id) { $request = EasyContactFormsUtils::parseRequest($request, 'Admin', 'boolean'); $request = EasyContactFormsUtils::parseRequest($request, 'Employee', 'boolean'); parent::update($request, $id); }