From e010c0744031c8b1ce09974b1833ed6eaf2c980a Mon Sep 17 00:00:00 2001 From: flyskyko Date: Wed, 30 May 2012 08:17:56 +0000 Subject: [PATCH] adds comments for phpDoc git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10754 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/addon/addon.admin.controller.php | 51 ++++++++++++------ modules/addon/addon.admin.model.php | 44 +++++++++++---- modules/addon/addon.admin.view.php | 20 ++++--- modules/addon/addon.class.php | 20 ++++--- modules/addon/addon.controller.php | 69 ++++++++++++++++++------ 5 files changed, 149 insertions(+), 55 deletions(-) diff --git a/modules/addon/addon.admin.controller.php b/modules/addon/addon.admin.controller.php index 2ac45a4dd..8ac44dcfd 100644 --- a/modules/addon/addon.admin.controller.php +++ b/modules/addon/addon.admin.controller.php @@ -1,22 +1,24 @@ addon = $addon; @@ -168,8 +179,13 @@ } /** - * @brief Add-activated - * addons add-ons to the table on the activation state sikyeojum + * Activate addon + * + * @param string $addon Addon name + * @param int $site_srl Site srl + * @param string $type pc or modile + * @param string $gtype site or global + * @return Object **/ function doActivate($addon, $site_srl = 0, $type = "pc", $gtype = 'site') { $args->addon = $addon; @@ -181,9 +197,12 @@ } /** - * @brief Disable Add-ons + * Deactivate Addon * - * addons add a table to remove the name of the deactivation is sikige + * @param string $addon Addon name + * @param int $site_srl Site srl + * @param string $type pc or mobile + * @param string $gtype site or global **/ function doDeactivate($addon, $site_srl = 0, $type = "pc", $gtype = 'site') { $args->addon = $addon; diff --git a/modules/addon/addon.admin.model.php b/modules/addon/addon.admin.model.php index 3d20773d6..41b408758 100644 --- a/modules/addon/addon.admin.model.php +++ b/modules/addon/addon.admin.model.php @@ -1,20 +1,23 @@ list_order = 'addon'; @@ -315,7 +333,13 @@ } /** - * @brief Add-on is enabled, check whether + * Returns whether to activate + * + * @param string $addon Name to check + * @param int $site_srl Site srl + * @param string $type pc or mobile + * @param string $gtype site or global + * @return bool If addon is activated returns true. Otherwise returns false. **/ function isActivatedAddon($addon, $site_srl = 0, $type = "pc", $gtype = 'site') { $args->addon = $addon; diff --git a/modules/addon/addon.admin.view.php b/modules/addon/addon.admin.view.php index 1dc31eaa7..3513925e0 100644 --- a/modules/addon/addon.admin.view.php +++ b/modules/addon/addon.admin.view.php @@ -1,21 +1,23 @@ setTemplatePath($this->module_path.'tpl'); } /** - * @brief Add Management main page (showing the list) + * Add Management main page (showing the list) + * + * @return Object **/ function dispAddonAdminIndex() { $oAdminModel = &getAdminModel('admin'); @@ -39,7 +41,9 @@ } /** - * @biref Setting out the details pop-up add-on + * Display setup page + * + * @return Object **/ function dispAddonAdminSetup() { $site_module_info = Context::get('site_module_info'); @@ -86,7 +90,9 @@ } /** - * @brief Add details (conf/info.xml) a pop-out + * Display information + * + * @return Object **/ function dispAddonAdminInfo() { $site_module_info = Context::get('site_module_info'); diff --git a/modules/addon/addon.class.php b/modules/addon/addon.class.php index 3e95b9bb7..95dfff327 100644 --- a/modules/addon/addon.class.php +++ b/modules/addon/addon.class.php @@ -1,14 +1,14 @@ mid_list = join('|@|',$mid_list); @@ -93,7 +114,9 @@ /** - * @brief Add mid-on + * Adds mid into running mid list + * + * @return Object **/ function procAddonSetupAddonAddMid() { $site_module_info = Context::get('site_module_info'); @@ -105,7 +128,9 @@ } /** - * @brief Add mid Delete + * Deletes mid from running mid list + * + * @return Object **/ function procAddonSetupAddonDelMid() { $site_module_info = Context::get('site_module_info'); @@ -118,7 +143,12 @@ } /** - * @brief Re-generate the cache file + * Re-generate the cache file + * + * @param int $site_srl Site srl + * @param string $type pc or mobile + * @param string $gtype site or global + * @return void **/ function makeCacheFile($site_srl = 0, $type = "pc", $gtype = 'site') { // Add-on module for use in creating the cache file @@ -155,7 +185,13 @@ } /** - * @brief Add-On Set + * Save setup + * + * @param string $addon Addon name + * @param object $extra_vars Extra variables + * @param int $site_srl Site srl + * @param string $gtype site or global + * @return Object **/ function doSetup($addon, $extra_vars,$site_srl=0, $gtype = 'site') { if(!is_array($extra_vars->mid_list)) unset($extra_vars->mid_list); @@ -168,7 +204,10 @@ } /** - * @brief Remove add-on information in the virtual site + * Remove add-on information in the virtual site + * + * @param int $site_srl Site srl + * @return void **/ function removeAddonConfig($site_srl) { $addon_path = _XE_PATH_.'files/cache/addons/';