merge from 1.7.3.5(r13153:r13167)

git-svn-id: http://xe-core.googlecode.com/svn/trunk@13168 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2013-09-29 23:32:39 +00:00
parent cc47d2b247
commit 2d3f149b5a
2042 changed files with 129266 additions and 126243 deletions

View file

@ -1,77 +1,98 @@
<?php
/**
* @class communication
* @author NHN (developers@xpressengine.com)
* communication module of the high class
**/
class communication extends ModuleObject {
/**
* @class communication
* @author NHN (developers@xpressengine.com)
* communication module of the high class
*/
class communication extends ModuleObject
{
/**
* Implement if additional tasks are necessary when installing
* @return Object
**/
function moduleInstall() {
// Create a temporary file storage for one new private message notification
FileHandler::makeDir('./files/member_extra_info/new_message_flags');
return new Object();
}
/**
* Implement if additional tasks are necessary when installing
* @return Object
*/
function moduleInstall()
{
// Create a temporary file storage for one new private message notification
FileHandler::makeDir('./files/member_extra_info/new_message_flags');
return new Object();
}
/**
* method to check if successfully installed.
* @return boolean true : need to update false : don't need to update
**/
function checkUpdate() {
if(!is_dir("./files/member_extra_info/new_message_flags")) return true;
/**
* method to check if successfully installed.
* @return boolean true : need to update false : don't need to update
*/
function checkUpdate()
{
if(!is_dir("./files/member_extra_info/new_message_flags"))
{
return TRUE;
}
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('message');
$oModuleModel = getModel('module');
$config = $oModuleModel->getModuleConfig('message');
if($config->skin)
if($config->skin)
{
$config_parse = explode('.', $config->skin);
if(count($config_parse) > 1)
{
$config_parse = explode('.', $config->skin);
if (count($config_parse) > 1)
$template_path = sprintf('./themes/%s/modules/communication/', $config_parse[0]);
if(is_dir($template_path))
{
$template_path = sprintf('./themes/%s/modules/communication/', $config_parse[0]);
if(is_dir($template_path)) return true;
return TRUE;
}
}
return false;
}
}
return FALSE;
}
/**
* Update
* @return Object
**/
function moduleUpdate() {
if(!is_dir("./files/member_extra_info/new_message_flags"))
FileHandler::makeDir('./files/member_extra_info/new_message_flags');
/**
* Update
* @return Object
*/
function moduleUpdate()
{
if(!is_dir("./files/member_extra_info/new_message_flags"))
{
FileHandler::makeDir('./files/member_extra_info/new_message_flags');
}
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('message');
$oModuleModel = getModel('module');
$config = $oModuleModel->getModuleConfig('message');
if(!is_object($config))
{
$config = new stdClass();
}
if($config->skin)
if($config->skin)
{
$config_parse = explode('.', $config->skin);
if(count($config_parse) > 1)
{
$config_parse = explode('.', $config->skin);
if (count($config_parse) > 1)
$template_path = sprintf('./themes/%s/modules/communication/', $config_parse[0]);
if(is_dir($template_path))
{
$template_path = sprintf('./themes/%s/modules/communication/', $config_parse[0]);
if(is_dir($template_path))
{
$config->skin = implode('|@|', $config_parse);
$oModuleController = &getController('module');
$oModuleController->updateModuleConfig('communication', $config);
}
$config->skin = implode('|@|', $config_parse);
$oModuleController = getController('module');
$oModuleController->updateModuleConfig('communication', $config);
}
}
return new Object(0, 'success_updated');
}
}
return new Object(0, 'success_updated');
}
/**
* Re-generate the cache file
* @return void
**/
function recompileCache() {
}
}
?>
/**
* Re-generate the cache file
* @return void
*/
function recompileCache()
{
}
}
/* End of file communication.class.php */
/* Location: ./modules/comment/communication.class.php */