Class CMS_dialog

Description

Class CMS_dialog

Interface generation This class is deprecated since Automne V4, only here for compatibility with old modules.

Located in /automne/classes/dialogs/dialog.php (line 29)

CMS_grandFather
   |
   --CMS_JSDialog
      |
      --CMS_dialog
Direct descendents
Class Description
 class CMS_LoadingDialog Class CMS_LoadingDialog
Class Constant Summary
Method Summary
 void __construct ()
 void addSubMenuItem (string $link, [string $title = ''], [string $attribute = false], [string $target = "_self"], [string $picto = false])
 string copyright ()
 string dontMakeFocus ()
 void getActionMessage (string 0)
 string getBackLink ()
 integer getBookmark ()
 integer getcontent ()
 string getTitle ()
 integer getTreeRoot ()
 boolean hasLogo ()
 void setActionMessage (string $message)
 void setBackLink (string $backLink)
 void setBookmark (integer $bookmark)
 void setContent (string $content, [boolean $dontParse = false])
 void setLogo (boolean $logo)
 true setMain (string $main)
 void setMenu (boolean $menu)
 string setSubMenu ( $submenu)
 void setSubTitle (string $subtitle)
 void setTextBeforeBody (string $text)
 void setTitle (string $title, [string $picto = false])
 boolean setTreeRoot (integer $treeRoot)
 void show ([mixed $mode = false])
 void showFrames ()
 string _getSubMenu ()
 void _getTitleDesign (string $title, string $class, [ $picto = false])
 void _parseContent (string $body)
 void _showBody ()
 void _showHead ()
 void _showMessage ()
 string _writeMenu ()
Methods
Constructor __construct (line 188)

Constructor.

  • access: public
void __construct ()
addSubMenuItem (line 1164)

add subMenu item

  • access: public
void addSubMenuItem (string $link, [string $title = ''], [string $attribute = false], [string $target = "_self"], [string $picto = false])
  • string $link: url for the link
  • string $title: title of the link (onMouseOver if $picto is defined, else, text title)
  • string $attribute: attribute for the link (default : none, ex : onClick="...")
  • string $target: target for the link (default : self)
  • string $picto: image name for the link
copyright (line 619)

add Automne copyright on generated HTML in backend

  • return: : the copyright to add
  • access: private
string copyright ()
dontMakeFocus (line 607)

dont make the Focus usefull with screen with Tab (Onglet) wich sometimes hide text fields and cause javascript error on IE

  • return: : the javascript to add
  • access: private
string dontMakeFocus ()
getActionMessage (line 934)

Get action message

  • access: private
void getActionMessage (string 0)
  • string 0: message
getBackLink (line 394)

Get Back Link

  • access: public
string getBackLink ()
getBookmark (line 346)

Get bookmark

  • access: public
integer getBookmark ()
getcontent (line 371)

Get content

  • access: public
integer getcontent ()
getContext (line 319)

Get context

  • access: public
CMS_context getContext ()
getTitle (line 243)

Get dialog Title

  • access: public
string getTitle ()
getTreeRoot (line 273)

Get Tree root

  • return: the tree root DB ID
  • access: public
integer getTreeRoot ()
hasLogo (line 308)

Has logo

  • access: public
boolean hasLogo ()
setActionMessage (line 922)

Sets action message

  • access: private
void setActionMessage (string $message)
  • string $message: message
setBackLink (line 383)

Set Back Link

  • access: public
void setBackLink (string $backLink)
  • string $backLink
setBookmark (line 331)

Set bookmark

  • access: public
void setBookmark (integer $bookmark)
  • integer $bookmark
setContent (line 359)

Set content

  • access: public
void setContent (string $content, [boolean $dontParse = false])
  • string $content
  • boolean $dontParse: If set to true, the content won't be parsed (useful when showing broken XML)
setLogo (line 297)

Set logo

  • access: public
void setLogo (boolean $logo)
  • boolean $logo
setMain (line 406)

set the main frame URL

  • access: public
true setMain (string $main)
  • string $main
setMenu (line 285)

Set menu flag. If false, no menu displayed

  • access: public
void setMenu (boolean $menu)
  • boolean $menu
setSubMenu (line 1139)
string setSubMenu ( $submenu)
  • $submenu
setSubTitle (line 220)

Set dialog Sub Title

  • access: public
void setSubTitle (string $subtitle)
  • string $subtitle
setTextBeforeBody (line 232)

Set text appearing before body tag (usually javascript)

  • access: public
void setTextBeforeBody (string $text)
  • string $text
setTitle (line 205)

Set dialog Title

  • access: public
void setTitle (string $title, [string $picto = false])
  • string $title
  • string $picto: (the html code of a picto)
setTreeRoot (line 256)

Set Tree root

  • return: true on success, false on failure
  • access: public
boolean setTreeRoot (integer $treeRoot)
  • integer $treeRoot
show (line 668)

Displays Admin page

  • access: public
void show ([mixed $mode = false])
  • mixed $mode: : the display mode to use in :
    • boolean false : default mode, used by main frame page
    • string 'menu' : used by menu frame page
    • string 'modules' : used by modules frame page
    • string 'arbo' : used by tree arbo frame page
    • string 'frames' : used by general frames page
    • string 'out' : used by out of frames page
    • string 'frameChecker' : used by frameChecker page
    • string 'loading' : used by loading frame page (send content when received without closing page content)
showFrames (line 418)

Displays Admin frameset

  • access: public
void showFrames ()
_getSubMenu (line 1176)

Return subMenu HTML code

  • access: private
string _getSubMenu ()
_getTitleDesign (line 947)

Goes to CMS style sheet to get title desing

  • access: private
void _getTitleDesign (string $title, string $class, [ $picto = false])
  • string $title
  • string $class
  • $picto
_parseContent (line 1040)

Parse the content looking for some special XML tags that will be interpretad :

  • dialog-title : a title rendered with an image
  • dialog-pages : a pages navigation row

  • access: public
void _parseContent (string $body)
  • string $body: xml that will be parsed
_showBody (line 784)

Shows body of html page

  • access: private
void _showBody ()
_showHead (line 703)

Writes html header

  • access: private
void _showHead ()
_showMessage (line 636)

Writes message

  • access: private
void _showMessage ()
_writeMenu (line 517)

Display for menu

  • access: private
string _writeMenu ()

Inherited Methods

Inherited From CMS_JSDialog

 CMS_JSDialog::addAjaxAPI()
 CMS_JSDialog::addCalendar()
 CMS_JSDialog::addDHTMLMenu()
 CMS_JSDialog::addFrameCheck()
 CMS_JSDialog::addJavascriptCheck()
 CMS_JSDialog::addOnglet()
 CMS_JSDialog::addPopupImage()
 CMS_JSDialog::addSearchCheck()
 CMS_JSDialog::addStopTab()
 CMS_JSDialog::changeColor()
 CMS_JSDialog::launchScriptPopup()
 CMS_JSDialog::linksBlocker()
 CMS_JSDialog::reloadAll()
 CMS_JSDialog::reloadModules()
 CMS_JSDialog::reloadTree()
 CMS_JSDialog::setJavascript()
 CMS_JSDialog::switchRows()

Inherited From CMS_grandFather

 CMS_grandFather::autoload()
 CMS_grandFather::hasError()
 CMS_grandFather::log()
 CMS_grandFather::PHPErrorHandler()
 CMS_grandFather::raiseError()
 CMS_grandFather::setDebug()
 CMS_grandFather::setLog()
 CMS_grandFather::_raiseError()
 CMS_grandFather::__call()
Class Constants
MESSAGE_ARCHIVES = 859 (line 38)
MESSAGE_CALENDAR = 1071 (line 37)
MESSAGE_HELP = 1073 (line 41)
MESSAGE_JOURNAL = 29 (line 31)
MESSAGE_META = 31 (line 33)
MESSAGE_MODULES_ADMIN = 264 (line 44)
MESSAGE_PERSONAL_PROFILE = 120 (line 35)
MESSAGE_PROFILES = 73 (line 40)
MESSAGE_QUIT = 32 (line 34)
MESSAGE_SEARCH = 212 (line 43)
MESSAGE_STATS = 1072 (line 39)
MESSAGE_SUMMARY = 26 (line 42)
MESSAGE_TEMPLATES = 30 (line 32)
MESSAGE_WEBSITE = 1070 (line 36)

Inherited Constants

Inherited from CMS_JSDialog

CMS_JSDialog::MESSAGE_CONFIRM_EXIT_WITHOUT_SAVING

Inherited from CMS_grandFather

CMS_grandFather::ERROR_LOG
CMS_grandFather::SYSTEM_LABEL

Documentation generated on Wed, 15 Feb 2012 15:29:56 +0100 by phpDocumentor 1.4.3