Chuyển đến nội dung
Tài liệu

Tra cứu lớp và hàm

ModuleObject

Danh sách các phương thức công khai của lớp ModuleObject (lớp toàn cục). Tài liệu này được tạo tự động từ mã nguồn lõi Zittme.

Nguồn: classes/module/ModuleObject.class.php

Phương thức công khai

  • function __construct($error = 0, $message = 'success')
  • Constructor
  • static function getInstance($module_hint = null)
  • Singleton
  • function setModule($module)
  • setter to set the name of module
  • function setModulePath($path)
  • setter to set the name of module path
  • function setRedirectUrl($url = './', $output = NULL)
  • setter to set an url for redirection
  • function getRedirectUrl()
  • get url for redirection
  • function setRefreshPage()
  • Set the template path for refresh.html
  • function setAct($act)
  • Set the action name
  • function setModuleInfo($module_info, $xml_info)
  • Set module information
  • function setPrivileges()
  • Set privileges(granted) information of current user and check permission of current module
  • function checkPermission($grant = null, $member_info = null, &$failed_requirement = '')
  • Check permission
  • function stop($msg_code, $error_code = -1)
  • Stop processing this module instance.
  • function setTemplateFile($filename)
  • set the file name of the template file
  • function getTemplateFile()
  • retrieve the directory path of the template directory
  • function setTemplatePath($path)
  • set the directory path of the template directory
  • function getTemplatePath()
  • retrieve the directory path of the template directory
  • function setEditedLayoutFile($filename)
  • set the file name of the temporarily modified by admin
  • function getEditedLayoutFile()
  • retreived the file name of edited_layout_file
  • function setLayoutFile($filename)
  • set the file name of the layout file
  • function getLayoutFile()
  • get the file name of the layout file
  • function setLayoutPath($path)
  • set the directory path of the layout directory
  • function getLayoutPath()
  • set the directory path of the layout directory
  • function setLayoutAndTemplatePaths($type, $config)
  • Automatically set layout and template path based on skin settings.
  • function proc()
  • excute the member method specified by $act variable
  • function copyResponseFrom(self $instance)
  • Copy the response of another ModuleObject into this instance.