Skip to content

icms_ipf_Controller

Raimondas Rimkevičius edited this page Mar 9, 2020 · 1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!

icms_ipf_Controller

This class is responsible for providing operations to an object for managing the object's manipulation

  • Class name: icms_ipf_Controller
  • Namespace:

Properties

$handler

public mixed $handler
  • Visibility: public

Methods

__construct

mixed icms_ipf_Controller::__construct(handler)
  • Visibility: public

Arguments

  • handler mixed

postDataToObject

mixed icms_ipf_Controller::postDataToObject(\obj icmsObj)
  • Visibility: public

Arguments

  • icmsObj obj

doStoreFromDefaultForm

mixed icms_ipf_Controller::doStoreFromDefaultForm(\obj icmsObj, int objectid, \str created_success_msg, \str modified_success_msg, bool redirect_page, bool debug)
  • Visibility: public

Arguments

  • icmsObj obj - <p>Object</p>
  • objectid int
  • created_success_msg str - <p>Message to display on successful creation</p>
  • modified_success_msg str - <p>Message to display on successful modification</p>
  • redirect_page bool - <p>Whether to redirect afterwards, or not</p>
  • debug bool - <p>Whether to display debug information, or not</p>

storeFromDefaultForm

bool icms_ipf_Controller::storeFromDefaultForm(string created_success_msg, string modified_success_msg, string redirect_page, mixed debug, mixed x_param)

Store the object in the database autmatically from a form sending POST data

  • Visibility: public

Arguments

  • created_success_msg string - <p>message to display if new object was created</p>
  • modified_success_msg string - <p>message to display if object was successfully edited</p>
  • redirect_page string - <p>redirect page, if not set, then we backup once</p>
  • debug mixed
  • x_param mixed

storeicms_ipf_ObjectD

mixed icms_ipf_Controller::storeicms_ipf_ObjectD()

Stores an object and shows debug information

  • Visibility: public

storeicms_ipf_Object

mixed icms_ipf_Controller::storeicms_ipf_Object(bool debug, bool xparam)
  • Visibility: public

Arguments

  • debug bool
  • xparam bool

handleObjectDeletion

bool icms_ipf_Controller::handleObjectDeletion(mixed confirm_msg, mixed op, mixed userSide)

Handles deletion of an object which keyid is passed as a GET param

  • Visibility: public

Arguments

  • confirm_msg mixed
  • op mixed
  • userSide mixed

handleObjectDeletionFromUserSide

mixed icms_ipf_Controller::handleObjectDeletionFromUserSide(bool confirm_msg, string op)
  • Visibility: public

Arguments

  • confirm_msg bool
  • op string

getAdminViewItemLink

string icms_ipf_Controller::getAdminViewItemLink(object icmsObj, bool onlyUrl, bool withimage)

Retrieve the object admin side link for a page

  • Visibility: public

Arguments

  • icmsObj object - <p>reference to the object from which we want the user side link</p>
  • onlyUrl bool - <p>whether or not to return a simple URL or a full <a> link</p>
  • withimage bool - <p>return a linked image instead of linked text</p>

getItemLink

string icms_ipf_Controller::getItemLink(object icmsObj, bool onlyUrl)

Retrieve the object user side link

  • Visibility: public

Arguments

  • icmsObj object - <p>reference to the object from which we want the user side link</p>
  • onlyUrl bool - <p>wether or not to return a simple URL or a full <a> link</p>

getViewItemLink

string icms_ipf_Controller::getViewItemLink(\icms_ipf_Object icmsObj, bool onlyUrl, bool withimage, bool userSide)

This method returns a view link of the Object

  • Visibility: public

Arguments

  • icmsObj icms_ipf_Object
  • onlyUrl bool
  • withimage bool
  • userSide bool

getEditLanguageLink

mixed icms_ipf_Controller::getEditLanguageLink(object icmsObj, bool onlyUrl, bool withimage)
  • Visibility: public

Arguments

  • icmsObj object
  • onlyUrl bool
  • withimage bool

getEditItemLink

mixed icms_ipf_Controller::getEditItemLink(\obj icmsObj, bool onlyUrl, bool withimage, bool userSide)
  • Visibility: public

Arguments

  • icmsObj obj
  • onlyUrl bool
  • withimage bool
  • userSide bool

getDeleteItemLink

mixed icms_ipf_Controller::getDeleteItemLink(\obj icmsObj, bool onlyUrl, bool withimage, bool userSide)
  • Visibility: public

Arguments

  • icmsObj obj
  • onlyUrl bool
  • withimage bool
  • userSide bool

getPrintAndMailLink

mixed icms_ipf_Controller::getPrintAndMailLink(\obj icmsObj)
  • Visibility: public

Arguments

  • icmsObj obj

getModuleItemString

mixed icms_ipf_Controller::getModuleItemString()

Creates a string from the object's module name and item name

  • Visibility: public
Clone this wiki locally