/**
  * 	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, 'Type', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'ListPosition', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'CustomForms', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'FieldSet', 'int');
     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, 'Date', 'date');
     $request = EasyContactFormsUtils::parseRequest($request, 'CustomForms', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'Users', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'SiteUser', 'int');
     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, 'TotalEntries', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'IncludeIntoReporting', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'CustomForms', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'Impressions', 'int');
     parent::update($request, $id);
 }
Пример #4
0
 /**
  * 	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, 'Docid', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'Size', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'Protected', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'Webdir', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'Count', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'ObjectOwner', 'int');
     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, 'UseTinyMCE', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'ApplicationWidth', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'ApplicationWidth2', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'FixJSLoading', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'FormCompletionMinTime', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'FormCompletionMaxTime', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'FixStatus0', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'InitTime', 'date');
     $request = EasyContactFormsUtils::parseRequest($request, 'ShowPoweredBy', 'boolean');
     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, 'UseTinyMCE', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'ApplicationWidth', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'ApplicationWidth2', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'FixJSLoading', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'FormCompletionMinTime', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'FormCompletionMaxTime', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'FixStatus0', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'InitTime', 'date');
     $request = EasyContactFormsUtils::parseRequest($request, 'ShowPoweredBy', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'FixStatus02', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'w3cCompliant', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'FixJSLoading2', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'AllowMarkupInEntries', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'SkipWeeklyReport', 'boolean');
     parent::update($request, $id);
 }
Пример #7
0
 /**
  * 	update. Overrides EasyContactFormsBase::update()
  *
  * 	updates an object with request data
  *
  * @param array $request
  * 	request data
  * @param int $id
  * 	object id
  */
 function update($request, $id)
 {
     $query = "SELECT\n\t\t\t\tUsers.Role,\n\t\t\t\tUsers.CMSId\n\t\t\tFROM\n\t\t\t\t#wp__easycontactforms_users AS Users\n\t\t\tWHERE\n\t\t\t\tUsers.id='{$id}'";
     $objs = EasyContactFormsDB::getObjects($query);
     $usr = $objs[0];
     global $current_user;
     $currentadmin = $usr->Role == 1 && isset($request->Role) && isset($current_user) && $current_user->ID == $usr->CMSId;
     if ($currentadmin) {
         $as = EasyContactFormsApplicationSettings::getInstance();
         $as->addMessage(EasyContactFormsT::get('CannotChangeCurrentUserRole'));
         $request->Role = 1;
     }
     $request = EasyContactFormsUtils::parseRequest($request, 'ContactType', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'Birthday', 'date');
     $request = EasyContactFormsUtils::parseRequest($request, 'Role', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'CMSId', 'int');
     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, 'ListPosition', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'ValueField', 'boolean');
     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, 'SendConfirmation', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'Redirect', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'Template', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'ObjectOwner', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'ShowSubmissionSuccess', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'Width', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'LineHeight', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'TotalEntries', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'TotalProcessedEntries', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'Impressions', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'IncludeVisitorsAddressInReplyTo', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'SendConfirmationAsText', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'SendNotificationAsText', 'boolean');
     $request = EasyContactFormsUtils::parseRequest($request, 'FadingDelay', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'MessageDelay', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'IncludeIntoReporting', 'boolean');
     parent::update($request, $id);
     $this->updateTemplate($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)
 {
     $query = "SELECT\n\t\t\t\tUsers.Role,\n\t\t\t\tUsers.CMSId\n\t\t\tFROM\n\t\t\t\t#wp__easycontactforms_users AS Users\n\t\t\tWHERE\n\t\t\t\tUsers.id='{$id}'";
     $objs = EasyContactFormsDB::getObjects($query);
     $usr = $objs[0];
     global $current_user;
     $currentadmin = $usr->Role == 1 && isset($request->Role) && isset($current_user) && $current_user->ID == $usr->CMSId;
     if ($currentadmin) {
         $as = EasyContactFormsApplicationSettings::getInstance();
         $as->addMessage(EasyContactFormsT::get('CannotChangeCurrentUserRole'));
         $request->Role = 1;
     }
     $request = EasyContactFormsUtils::parseRequest($request, 'ContactType', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'Birthday', 'date');
     $request = EasyContactFormsUtils::parseRequest($request, 'Role', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'CMSId', 'int');
     if (isset($this->user)) {
         require_once 'easy-contact-forms-backoffice.php';
         $bo = new EasyContactFormsBackOffice();
         $request = $bo->processHistory($request, $this->type, $id, $this->user->id);
     }
     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, 'CustomForms', 'int');
     $request = EasyContactFormsUtils::parseRequest($request, 'Contacts', 'int');
     parent::update($request, $id);
 }
Пример #12
0
 /**
  * 	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);
 }