Overview

Packages

  • Auth
    • Ads
    • Ldap
    • Xoops
  • Autotasks
  • Config
    • Category
    • Item
    • Option
  • Core
    • Filesystem
    • Filters
    • Logger
    • Mail
    • Message
    • Password
    • Security
    • StopSpammer
    • Template
    • Textsanitizer
    • VersionChecker
  • Data
    • Avatar
    • Comment
  • Database
    • Connection
    • Criteria
    • Legacy
    • MySQL
    • PDO
    • Updater
  • Feeds
    • RSS
  • File
  • Form
    • Base
    • Elements
  • ICMS
    • IPF
      • View
  • Image
    • Category
  • Ipf
    • Category
    • Controller
    • Export
    • form
    • Keyhighlighter
    • Member
    • Object
    • Permission
    • richfile
    • Tree
    • urllink
    • View
  • kernel
    • Set
  • Member
    • Group
    • GroupMembership
    • GroupPermission
    • User
  • Messaging
  • Module
  • None
  • Notification
  • Page
  • Plugins
    • Editor
  • Preload
    • Libraries
  • Privmessage
  • Session
  • SmartObject
  • View
    • Block
    • Breadcrumb
    • PageNav
    • PrinterFriendly
    • Template
    • Templates
    • Theme
    • Tree

Classes

  • icms_ipf_Controller
  • Overview
  • Package
  • Class

Class icms_ipf_Controller

Package: Ipf\Controller
Category: ICMS
Copyright: The ImpressCMS Project http://www.impresscms.org/
License: GNU General Public License (GPL)
Author: Original idea by Jan Keller Pedersen mithrandir@xoops.org - IDG Danmark A/S <www.idg.dk>
Author: marcan marcan@impresscms.org
Located at ipf/Controller.php
Methods summary
public
# __construct( $handler )

Parameters

$handler
public
# postDataToObject( obj & $icmsObj )

Parameters

$icmsObj
public &
# doStoreFromDefaultForm( obj & $icmsObj, integer $objectid, str $created_success_msg, str $modified_success_msg, boolean $redirect_page = false, boolean $debug = false )

Parameters

$icmsObj
Object
$objectid
$created_success_msg
Message to display on successful creation
$modified_success_msg
Message to display on successful modification
$redirect_page
Whether to redirect afterwards, or not
$debug
Whether to display debug information, or not
public boolean &
# storeFromDefaultForm( string $created_success_msg, string $modified_success_msg, string $redirect_page = false, string $debug = false, string $x_param = false, boolean $exit,… )

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

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

Parameters

$created_success_msg
message to display if new object was created
$modified_success_msg
message to display if object was successfully edited
$redirect_page
$created_redir_page redirect page after creating the object
$debug
$modified_redir_page redirect page after editing the object
$x_param
$redirect_page redirect page, if not set, then we backup once
$exit,…
if set to TRUE then the script ends

Returns

boolean
public &
# storeicms_ipf_ObjectD( )

Stores an object and shows debug information

Stores an object and shows debug information

public &
# storeicms_ipf_Object( boolean $debug = false, boolean $xparam = false )

Parameters

$debug
$xparam

See

icms_ipf_Controller::storeFromDefaultForm()
public boolean
# handleObjectDeletion( string $confirm_msg = false, $op = 'del', $userSide = false )

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

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

Parameters

$confirm_msg
$redir_page redirect page after deleting the object
$op
$userSide

Returns

boolean
public
# handleObjectDeletionFromUserSide( boolean $confirm_msg = false, string $op = 'del' )

Parameters

$confirm_msg
$op
public string
# getAdminViewItemLink( object $icmsObj, boolean $onlyUrl = false, boolean $withimage = false )

Retrieve the object admin side link for a icms_ipf_view_Single page

Retrieve the object admin side link for a icms_ipf_view_Single page

Parameters

$icmsObj
reference to the object from which we want the user side link
$onlyUrl
whether or not to return a simple URL or a full link
$withimage
return a linked image instead of linked text

Returns

string
admin side link to the object
public string
# getItemLink( object & $icmsObj, boolean $onlyUrl = false )

Retrieve the object user side link

Retrieve the object user side link

Parameters

$icmsObj
reference to the object from which we want the user side link
$onlyUrl
wether or not to return a simple URL or a full link

Returns

string
user side link to the object
public string
# getViewItemLink( icms_ipf_Object $icmsObj, boolean $onlyUrl = false, boolean $withimage = true, boolean $userSide = false )

This method returns a view link of the Object

This method returns a view link of the Object

Parameters

$icmsObj
$onlyUrl
$withimage
$userSide

Returns

string
public
# getEditLanguageLink( object $icmsObj, boolean $onlyUrl = false, boolean $withimage = true )

Parameters

$icmsObj
$onlyUrl
$withimage
public
# getEditItemLink( obj $icmsObj, boolean $onlyUrl = false, boolean $withimage = true, boolean $userSide = false )

Parameters

$icmsObj
$onlyUrl
$withimage
$userSide
public
# getDeleteItemLink( obj $icmsObj, boolean $onlyUrl = false, boolean $withimage = true, boolean $userSide = false )

Parameters

$icmsObj
$onlyUrl
$withimage
$userSide
public
# getPrintAndMailLink( obj $icmsObj )

Parameters

$icmsObj
public
# getModuleItemString( )

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

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

Properties summary
public $handler
#
API documentation generated by ApiGen