} else {
$class = 'Xoops'.ucfirst(XOOPS_DB_TYPE).'DatabaseProxy';
}
- $database =& new $class();
+ $database = new $class();
}
return $database;
}
// or switch?
$class_name = "XCube_" . ucfirst($dependName) . "Validator";
if (XC_CLASS_EXISTS($class_name)) {
- $_cache[$dependName] =& new $class_name();
+ $_cache[$dependName] = new $class_name();
}
else {
// FIXME:: use delegate?
$this->_mFilterChain = array();
$this->_mLoadedFilterNames = array();
- $this->mSetupUser =& new XCube_Delegate();
- $this->mExecute =& new XCube_Delegate();
- $this->mSetupTextFilter =& new XCube_Delegate();
+ $this->mSetupUser = new XCube_Delegate();
+ $this->mExecute = new XCube_Delegate();
+ $this->mSetupTextFilter = new XCube_Delegate();
$this->mSetupTextFilter->add('XCube_TextFilter::getInstance',XCUBE_DELEGATE_PRIORITY_FINAL);
}
*/
function _setupLanguage()
{
- $this->mRoot->mLanguageManager =& new XCube_LanguageManager();
+ $this->mRoot->mLanguageManager = new XCube_LanguageManager();
}
*/
function _processBlock()
{
-/* foreach(array_keys($this->mBlockChain) as $key) {
- if ($this->mBlockChain[$key]->hasPermission($this, $this->getUser())) {
- $renderTarget =& new XCube_RenderTarget();
- $renderTarget->setType(XCUBE_RENDER_TARGET_TYPE_MAIN);
-
- $this->mBlockChain[$key]->execute($this, $this->getUser(), $renderTarget);
-
- $this->mBlockChain[$key]->mRenderTarget =& $renderTarget;
-
- unset($renderTarget);
- }
- }*/
}
/**
if (XC_CLASS_EXISTS($className) && !isset($this->_mLoadedFilterNames[$className])) {
$this->_mLoadedFilterNames[$className] = true;
- $instance =& new $className($this);
+ $instance = new $className($this);
$this->addActionFilter($instance);
}
}
*/
function &_createDelegateManager()
{
- $delegateManager =& new XCube_DelegateManager();
+ $delegateManager = new XCube_DelegateManager();
return $delegateManager;
}
function &_createServiceManager()
{
require_once XCUBE_CORE_PATH . '/XCube_ServiceManager.class.php';
- $serviceManager =& new XCube_ServiceManager();
+ $serviceManager = new XCube_ServiceManager();
return $serviceManager;
}
*/
function &_createContext()
{
- $context =& new XCube_HttpContext();
- $request =& new XCube_HttpRequest();
+ $context = new XCube_HttpContext();
+ $request = new XCube_HttpRequest();
$context->setRequest($request);
return $context;
* important to accent a delegate for making rightly connected functions.
*
* \code
- * $delegate =& new XCube_Delegate("string", "string");
+ * $delegate = new XCube_Delegate("string", "string");
* \endcode
*/
function XCube_Delegate()
$keys = array_keys($delegates[$delegateName]);
$delegate =& $delegates[$delegateName][$keys[0]];
} else {
- $delegate =& new XCube_Delegate;
+ $delegate = new XCube_Delegate;
$root->mDelegateManager->register($delegateName, $delegate);
}
}
*
* \code
* {
- * $local =& new XCube_Delegate();
+ * $local = new XCube_Delegate();
* $local->register("Module.A.Exception.Null");
* $local->call();
* }
if (!empty($string) && is_string($string)) {
return "";
}
- $args[1] =& new XCube_Ref($string);
+ $args[1] = new XCube_Ref($string);
call_user_func_array(array('XCube_DelegateUtils','call'),$args);
return $string;
} else {
$this->mUrl = $url;
$this->mFlags = $flags;
- $this->mFetch =& new XCube_Delegate();
+ $this->mFetch = new XCube_Delegate();
$this->mFetch->add(array(&$this, 'fetchNaviControl'));
- $this->mGetTotalItems =& new XCube_Delegate();
+ $this->mGetTotalItems = new XCube_Delegate();
}
/**
function _set($index, $value)
{
if (!isset($this->mProperties[$index])) {
- $this->mProperties[$index] =& new $this->mPropertyClassName($this->mName);
+ $this->mProperties[$index] = new $this->mPropertyClassName($this->mName);
}
$this->mProperties[$index]->set($value);
}
function XCube_FileProperty($name)
{
parent::XCube_AbstractProperty($name);
- $this->mValue =& new XCube_FormFile($name);
+ $this->mValue = new XCube_FormFile($name);
}
function hasFetchControl()
$this->mProperties = array();
if (isset($_FILES[$this->mName]) && is_array($_FILES[$this->mName]['name'])) {
foreach ($_FILES[$this->mName]['name'] as $_key => $_val) {
- $this->mProperties[$_key] =& new $this->mPropertyClassName($this->mName);
+ $this->mProperties[$_key] = new $this->mPropertyClassName($this->mName);
$this->mProperties[$_key]->mIndex = $_key;
$this->mProperties[$_key]->fetch($form);
}
function XCube_ImageFileProperty($name)
{
parent::XCube_AbstractProperty($name);
- $this->mValue =& new XCube_FormImageFile($name);
+ $this->mValue = new XCube_FormImageFile($name);
}
}
*/
function &createRenderTarget()
{
- $renderTarget =& new XCube_RenderTarget();
+ $renderTarget = new XCube_RenderTarget();
return $renderTarget;
}
}
if (XC_CLASS_EXISTS($className)) {
- $ret =& new $className();
+ $ret = new $className();
}
return $ret;
$request_bak =& $root->mContext->mRequest;
unset($root->mContext->mRequest);
- $root->mContext->mRequest =& new XCube_GenericRequest($params);
+ $root->mContext->mRequest = new XCube_GenericRequest($params);
if (isset($this->mService->_mFunctions[$operation])) {
$ret = call_user_func(array($this->mService, $operation));
function XCube_ServiceManager()
{
- $this->mCreateClient =& new XCube_Delegate();
+ $this->mCreateClient = new XCube_Delegate();
$this->mCreateClient->register("XCube_ServiceManager.CreateClient");
- $this->mCreateServer =& new XCube_Delegate();
+ $this->mCreateServer = new XCube_Delegate();
$this->mCreateServer->register("XCube_ServiceManager.CreateServer");
}
{
$this->setParam($sessionName, $sessionExpire);
- $this->mSetupSessionHandler =& new XCube_Delegate();
+ $this->mSetupSessionHandler = new XCube_Delegate();
$this->mSetupSessionHandler->register('XCube_Session.SetupSessionHandler');
- $this->mGetSessionCookiePath =& new XCube_Delegate();
+ $this->mGetSessionCookiePath = new XCube_Delegate();
$this->mGetSessionCookiePath->register('XCube_Session.GetSessionCookiePath');
}
if ( file_exists(XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/xoopsmailerlocal.php") ) {
require_once XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/xoopsmailerlocal.php";
if ( XC_CLASS_EXISTS("XoopsMailerLocal") ) {
- $ret =& new XoopsMailerLocal();
+ $ret = new XoopsMailerLocal();
return $ret;
}
}
- $ret =& new XoopsMailer();
+ $ret = new XoopsMailer();
return $ret;
}
$className = ucfirst(strtolower($module_dir)) . "_" . ucfirst($name) . 'Handler';
if (XC_CLASS_EXISTS($className)) {
- $handlers[$module_dir][$name] =& new $className(XoopsDatabaseFactory::getDatabaseConnection());
+ $handlers[$module_dir][$name] = new $className(XoopsDatabaseFactory::getDatabaseConnection());
}
else {
$className = ucfirst(strtolower($module_dir)) . ucfirst($name) . 'Handler';
function &create()
{
- $ret =& new XoopsCachetime();
+ $ret = new XoopsCachetime();
return $ret;
}
function &get($cachetime)
{
if (isset($this->_mResult[$cachetime])) {
- $obj =& new XoopsCachetime();
+ $obj = new XoopsCachetime();
$obj->setVar('cachetime', $cachetime);
$obj->setVar('label', $this->_mResult[$cachetime]);
$ret = array();
foreach ($this->_mResult as $cachetime => $label) {
- $obj =& new XoopsCachetime();
+ $obj = new XoopsCachetime();
$obj->setVar('cachetime', $cachetime);
$obj->setVar('label', $label);
if ($key_as_id) {
*/
function XoopsConfigHandler(&$db)
{
- $this->_cHandler =& new XoopsConfigItemHandler($db);
- $this->_oHandler =& new XoopsConfigOptionHandler($db);
+ $this->_cHandler = new XoopsConfigItemHandler($db);
+ $this->_oHandler = new XoopsConfigOptionHandler($db);
}
/**
*/
function &create($isNew = true)
{
- $confcat =& new XoopsConfigCategory();
+ $confcat = new XoopsConfigCategory();
if ($isNew) {
$confcat->setNew();
}
if ($result = $this->db->query($sql)) {
$numrows = $this->db->getRowsNum($result);
if ($numrows == 1) {
- $confcat =& new XoopsConfigCategory();
+ $confcat = new XoopsConfigCategory();
$confcat->assignVars($this->db->fetchArray($result), false);
$ret =& $confcat;
}
return $ret;
}
while ($myrow = $this->db->fetchArray($result)) {
- $confcat =& new XoopsConfigCategory();
+ $confcat = new XoopsConfigCategory();
$confcat->assignVars($myrow, false);
if (!$id_as_key) {
$ret[] =& $confcat;
*/
function &create($isNew = true)
{
- $config =& new XoopsConfigItem();
+ $config = new XoopsConfigItem();
if ($isNew) {
$config->setNew();
}
$numrows = $this->db->getRowsNum($result);
if ($numrows == 1) {
$myrow = $this->db->fetchArray($result);
- $config =& new XoopsConfigItem();
+ $config = new XoopsConfigItem();
$config->assignVars($myrow);
$ret =& $config;
}
return $ret;
}
while ($myrow = $this->db->fetchArray($result)) {
- $config =& new XoopsConfigItem();
+ $config = new XoopsConfigItem();
$config->assignVars($myrow);
if (!$id_as_key) {
$ret[] =& $config;
*/
function &create($isNew = true)
{
- $confoption =& new XoopsConfigOption();
+ $confoption = new XoopsConfigOption();
if ($isNew) {
$confoption->setNew();
}
if ($result = $this->db->query($sql)) {
$numrows = $this->db->getRowsNum($result);
if ($numrows == 1) {
- $confoption =& new XoopsConfigOption();
+ $confoption = new XoopsConfigOption();
$confoption->assignVars($this->db->fetchArray($result));
$ret =& $confoption;
}
return $ret;
}
while ($myrow = $this->db->fetchArray($result)) {
- $confoption =& new XoopsConfigOption();
+ $confoption = new XoopsConfigOption();
$confoption->assignVars($myrow);
if (!$id_as_key) {
$ret[] =& $confoption;
*/
function &create($isNew = true)
{
- $group =& new XoopsGroup();
+ $group = new XoopsGroup();
if ($isNew) {
$group->setNew();
}
return $ret;
}
while ($myrow = $this->db->fetchArray($result)) {
- $group =& new XoopsGroup();
+ $group = new XoopsGroup();
$group->assignVars($myrow);
if (!$id_as_key) {
$ret[] =& $group;
*/
function &create($isNew = true)
{
- $mship =& new XoopsMembership();
+ $mship = new XoopsMembership();
if ($isNew) {
$mship->setNew();
}
if ($result = $this->db->query($sql)) {
$numrows = $this->db->getRowsNum($result);
if ($numrows == 1) {
- $mship =& new XoopsMembership();
+ $mship = new XoopsMembership();
$mship->assignVars($this->db->fetchArray($result));
$ret =& $mship;
}
*/
function &create($isNew = true)
{
- $perm =& new XoopsGroupPerm();
+ $perm = new XoopsGroupPerm();
if ($isNew) {
$perm->setNew();
}
if ($result = $this->db->query($sql)) {
$numrows = $this->db->getRowsNum($result);
if ( $numrows == 1 ) {
- $perm =& new XoopsGroupPerm();
+ $perm = new XoopsGroupPerm();
$perm->assignVars($this->db->fetchArray($result));
$ret =& $perm;
}
return $ret;
}
while ($myrow = $this->db->fetchArray($result)) {
- $perm =& new XoopsGroupPerm();
+ $perm = new XoopsGroupPerm();
$perm->assignVars($myrow);
if (!$id_as_key) {
$ret[] =& $perm;
*/
function XoopsMemberHandler(&$db)
{
- $this->_gHandler =& new XoopsGroupHandler($db);
- $this->_uHandler =& new XoopsUserHandler($db);
- $this->_mHandler =& new XoopsMembershipHandler($db);
+ $this->_gHandler = new XoopsGroupHandler($db);
+ $this->_uHandler = new XoopsUserHandler($db);
+ $this->_mHandler = new XoopsMembershipHandler($db);
}
/**
**/
function &create($isNew = true)
{
- $module =& new XoopsModule();
+ $module = new XoopsModule();
if ($isNew) {
$module->setNew();
}
if ($result = $this->db->query($sql)) {
$numrows = $this->db->getRowsNum($result);
if ($numrows == 1) {
- $module =& new XoopsModule();
+ $module = new XoopsModule();
$myrow = $this->db->fetchArray($result);
$module->assignVars($myrow);
$this->_cachedModule_mid[$id] =& $module;
if ($result = $this->db->query($sql)) {
$numrows = $this->db->getRowsNum($result);
if ($numrows == 1) {
- $module =& new XoopsModule();
+ $module = new XoopsModule();
$myrow = $this->db->fetchArray($result);
$module->assignVars($myrow);
$this->_cachedModule_dirname[$dirname] =& $module;
return $ret;
}
while ($myrow = $this->db->fetchArray($result)) {
- $module =& new XoopsModule();
+ $module = new XoopsModule();
$module->assignVars($myrow);
if (!$id_as_key) {
$ret[] =& $module;
function &xoopsClone()
{
$class = get_class($this);
- $clone =& new $class();
+ $clone = new $class();
foreach ($this->vars as $k => $v) {
$clone->assignVar($k, $v['value']);
}
function &create()
{
- $ret =& new XoopsTimezone();
+ $ret = new XoopsTimezone();
return $ret;
}
foreach ($this->_mResult as $index => $zone_name) {
if (floatval($index) == floatval($offset)) {
- $obj =& new XoopsTimezone();
+ $obj = new XoopsTimezone();
$obj->set('offset', $index);
$obj->set('zone_name', $zone_name);
$ret = array();
foreach ($this->_mResult as $offset => $zone_name) {
- $obj =& new XoopsTimezone();
+ $obj = new XoopsTimezone();
$obj->setVar('offset', $offset);
$obj->setVar('zone_name', $zone_name);
if ($key_as_id) {
function &create($isNew = true)
{
- $tplfile =& new XoopsTplfile();
+ $tplfile = new XoopsTplfile();
if ($isNew) {
$tplfile->setNew();
}
if ($result = $this->db->query($sql)) {
$numrows = $this->db->getRowsNum($result);
if ($numrows == 1) {
- $ret =& new XoopsTplfile();
+ $ret = new XoopsTplfile();
$ret->assignVars($this->db->fetchArray($result));
}
}
return $ret;
}
while ($myrow = $this->db->fetchArray($result)) {
- $tplfile =& new XoopsTplfile();
+ $tplfile = new XoopsTplfile();
$tplfile->assignVars($myrow);
if (!$id_as_key) {
$ret[] =& $tplfile;
function &create($isNew = true)
{
- $tplset =& new XoopsTplset();
+ $tplset = new XoopsTplset();
if ($isNew) {
$tplset->setNew();
}
if ($result = $this->db->query($sql)) {
$numrows = $this->db->getRowsNum($result);
if ($numrows == 1) {
- $tplset =& new XoopsTplset();
+ $tplset = new XoopsTplset();
$tplset->assignVars($this->db->fetchArray($result));
$ret =& $tplset;
}
return $ret;
}
while ($myrow = $this->db->fetchArray($result)) {
- $tplset =& new XoopsTplset();
+ $tplset = new XoopsTplset();
$tplset->assignVars($myrow);
if (!$id_as_key) {
$ret[] =& $tplset;
*/
function &create($isNew = true)
{
- $user =& new XoopsUser();
+ $user = new XoopsUser();
if ($isNew) {
$user->setNew();
}
if ($result = $this->db->query($sql)) {
$numrows = $this->db->getRowsNum($result);
if ($numrows == 1) {
- $user =& new XoopsUser();
+ $user = new XoopsUser();
$user->assignVars($this->db->fetchArray($result));
$ret =& $user;
}
return $ret;
}
while ($myrow = $this->db->fetchArray($result)) {
- $user =& new XoopsUser();
+ $user = new XoopsUser();
$user->assignVars($myrow);
if (!$id_as_key) {
$ret[] =& $user;
function addRecord($moduleName, $url, $title, $desc = null)
{
- $this->mRecords[] =& new Legacy_ActionSearchRecord($moduleName, $url, $title, $desc);
+ $this->mRecords[] = new Legacy_ActionSearchRecord($moduleName, $url, $title, $desc);
}
function &getRecords()
{
parent::Legacy_Action($flag);
- $this->mSearchAction =& new XCube_Delegate();
+ $this->mSearchAction = new XCube_Delegate();
$this->mSearchAction->add(array(&$this, 'defaultSearch'));
$this->mSearchAction->register('Legacy_ActSearchAction.SearchAction');
}
$handler =& xoops_gethandler('module');
while ($row = $db->fetchArray($result)) {
$module =& $handler->get($row['mid']);
- $adapter =& new Legacy_ModuleAdapter($module); // FIXMED
+ $adapter = new Legacy_ModuleAdapter($module); // FIXMED
$this->mModules[] =& $adapter;
return LEGACY_FRAME_VIEW_INPUT;
}
- $searchArgs =& new Legacy_ActionSearchArgs($this->mActionForm->get('keywords'));
+ $searchArgs = new Legacy_ActionSearchArgs($this->mActionForm->get('keywords'));
$this->mSearchAction->call(new XCube_Ref($searchArgs));
if ($searchArgs->hasRecord()) {
function _processActionForm()
{
- $this->mActionForm =& new Legacy_ActionSearchForm();
+ $this->mActionForm = new Legacy_ActionSearchForm();
$this->mActionForm->prepare();
}
function _setupActionForm()
{
- $this->mActionForm =& new Legacy_BlockEditForm();
+ $this->mActionForm = new Legacy_BlockEditForm();
$this->mActionForm->prepare();
}
}
$permHandler =& xoops_gethandler('groupperm');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('gperm_modid', 1));
$criteria->add(new Criteria('gperm_itemid', $this->mObject->get('bid')));
$criteria->add(new Criteria('gperm_name', 'block_read'));
$moduleArr[1]->set('mid', 0);
$moduleArr[1]->set('name', _AD_LEGACY_LANG_ALL_MODULES);
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('hasmain', 1));
$criteria->add(new Criteria('isactive', 1));
{
function _setupActionForm()
{
- $this->mActionForm =& new Legacy_BlockInstallEditForm();
+ $this->mActionForm = new Legacy_BlockInstallEditForm();
$this->mActionForm->prepare();
}
function &_getFilterForm()
{
- $filter =& new Legacy_BlockInstallFilterForm($this->_getPageNavi(), $this->_getHandler());
+ $filter = new Legacy_BlockInstallFilterForm($this->_getPageNavi(), $this->_getHandler());
return $filter;
}
function prepare(&$controller, &$xoopsUser)
{
- $this->mActionForm =& new Legacy_BlockListForm();
+ $this->mActionForm = new Legacy_BlockListForm();
$this->mActionForm->prepare();
}
function &_getFilterForm()
{
- $filter =& new Legacy_BlockFilterForm($this->_getPageNavi(), $this->_getHandler());
+ $filter = new Legacy_BlockFilterForm($this->_getPageNavi(), $this->_getHandler());
return $filter;
}
function _setupActionForm()
{
- $this->mActionForm =& new Legacy_BlockUninstallForm();
+ $this->mActionForm = new Legacy_BlockUninstallForm();
$this->mActionForm->prepare();
}
function _setupActionForm()
{
- $this->mActionForm =& new Legacy_CustomBlockDeleteForm();
+ $this->mActionForm = new Legacy_CustomBlockDeleteForm();
$this->mActionForm->prepare();
}
{
function _setupActionForm()
{
- $this->mActionForm =& new Legacy_CustomBlockEditForm();
+ $this->mActionForm = new Legacy_CustomBlockEditForm();
$this->mActionForm->prepare();
}
$moduleArr[1]->set('mid', 0);
$moduleArr[1]->set('name', _AD_LEGACY_LANG_ALL_MODULES);
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('hasmain', 1));
$criteria->add(new Criteria('isactive', 1));
{
parent::Legacy_Action($flag);
- $this->mCreateHelpSmarty =& new XCube_Delegate();
+ $this->mCreateHelpSmarty = new XCube_Delegate();
$this->mCreateHelpSmarty->add(array(&$this, '_createHelpSmarty'));
$this->mCreateHelpSmarty->register('Legacy_HelpAction.CreateHelpSmarty');
}
function &_getInstaller($dirname)
{
- $installer =& new Legacy_ModuleInstaller($dirname);
+ $installer = new Legacy_ModuleInstaller($dirname);
return $installer;
}
function _setupActionForm()
{
- $this->mActionForm =& new Legacy_InstallWizardForm();
+ $this->mActionForm = new Legacy_InstallWizardForm();
$this->mActionForm->prepare();
}
{
parent::Legacy_Action($flag);
- $this->mInstallSuccess =& new XCube_Delegate();
+ $this->mInstallSuccess = new XCube_Delegate();
$this->mInstallSuccess->register('Legacy_ModuleInstallAction.InstallSuccess');
- $this->mInstallFail =& new XCube_Delegate();
+ $this->mInstallFail = new XCube_Delegate();
$this->mInstallFail->register('Legacy_ModuleInstallAction.InstallFail');
}
function _setupActionForm()
{
- $this->mActionForm =& new Legacy_ModuleInstallForm();
+ $this->mActionForm = new Legacy_ModuleInstallForm();
$this->mActionForm->prepare();
}
function prepare(&$controller, &$xoopsUser)
{
- $this->mActionForm =& new Legacy_ModuleListForm();
+ $this->mActionForm = new Legacy_ModuleListForm();
$this->mActionForm->prepare();
}
function getDefaultView(&$controller, &$xoopsUser)
{
- $this->mFilter =& new Legacy_ModuleListFilterForm();
+ $this->mFilter = new Legacy_ModuleListFilterForm();
$this->mFilter->fetch();
$moduleHandler =& xoops_gethandler('module');
{
parent::Legacy_Action($flag);
- $this->mUninstallSuccess =& new XCube_Delegate();
+ $this->mUninstallSuccess = new XCube_Delegate();
$this->mUninstallSuccess->register('Legacy_ModuleUninstallAction.UninstallSuccess');
- $this->mUninstallFail =& new XCube_Delegate();
+ $this->mUninstallFail = new XCube_Delegate();
$this->mUninstallFail->register('Legacy_ModuleUninstallAction.UninstallFail');
}
function _setupActionForm()
{
- $this->mActionForm =& new Legacy_ModuleUninstallForm();
+ $this->mActionForm = new Legacy_ModuleUninstallForm();
$this->mActionForm->prepare();
}
{
parent::Legacy_Action($flag);
- $this->mUpdateSuccess =& new XCube_Delegate();
+ $this->mUpdateSuccess = new XCube_Delegate();
$this->mUpdateSuccess->register('Legacy_ModuleUpdateAction.UpdateSuccess');
- $this->mUpdateFail =& new XCube_Delegate();
+ $this->mUpdateFail = new XCube_Delegate();
$this->mUpdateFail->register('Legacy_ModuleUpdateAction.UpdateFail');
}
function _setupActionForm()
{
- $this->mActionForm =& new Legacy_ModuleUpdateForm();
+ $this->mActionForm = new Legacy_ModuleUpdateForm();
$this->mActionForm->prepare();
}
if ($this->mPreparedFlag) {
$handler =& xoops_gethandler('config');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('conf_modid', $this->mActionForm->getModuleId()));
$criteria->add(new Criteria('conf_catid', $this->mActionForm->getCategoryId()));
//
if (in_array('module', $formtypeArr)) {
$handler =& xoops_gethandler('module');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('hasmain', 1));
$criteria->add(new Criteria('isactive', 1));
$moduleArr = $handler->getObjects($criteria);
return;
}
- $this->_mMaster->mActionForm =& new Legacy_PreferenceEditForm($this->_mMaster->mCategory);
+ $this->_mMaster->mActionForm = new Legacy_PreferenceEditForm($this->_mMaster->mCategory);
$this->_mMaster->mPreparedFlag = true;
}
$controller->executeForward(XOOPS_URL . '/admin.php');
}
- $this->_mMaster->mActionForm =& new Legacy_ModulePreferenceEditForm($this->_mMaster->mModule);
+ $this->_mMaster->mActionForm = new Legacy_ModulePreferenceEditForm($this->_mMaster->mModule);
//
// Load constants
$handler =& xoops_gethandler('config');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('conf_name', 'theme_set'));
$criteria->add(new Criteria('conf_catid', XOOPS_CONF));
function _setupActionForm()
{
- $this->mActionForm =& new Legacy_ThemeSelectForm();
+ $this->mActionForm = new Legacy_ThemeSelectForm();
$this->mActionForm->prepare();
}
{
$configHandler =& xoops_gethandler('config');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('conf_name', 'theme_set_allowed'));
$criteria->add(new Criteria('conf_catid', XOOPS_CONF));
//
$configHandler =& xoops_gethandler('config');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('conf_name', 'theme_set_allowed'));
$criteria->add(new Criteria('conf_catid', XOOPS_CONF));
$themeName = $this->mActionForm->getChooseTheme();
if ($themeName != null) {
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('conf_name', 'theme_set'));
$criteria->add(new Criteria('conf_catid', XOOPS_CONF));
$this->mDefault = $default;
$this->mOrder = intval($order);
- $this->mOption =& new Legacy_PreferenceOptionInfoCollection();
+ $this->mOption = new Legacy_PreferenceOptionInfoCollection();
}
/**
$template = isset($arr['template']) ? $arr['template'] : null;
$options = isset($arr['options']) ? $arr['options'] : null;
- $info =& new Legacy_BlockInformation($funcNum, $arr['name'], $arr['file'], $showFunc, $editFunc, $template, $options);
+ $info = new Legacy_BlockInformation($funcNum, $arr['name'], $arr['file'], $showFunc, $editFunc, $template, $options);
return $info;
}
*/
function &loadBlockInformations()
{
- $collection =& new Legacy_BlockInfoCollection();
+ $collection = new Legacy_BlockInfoCollection();
$t_filePath = XOOPS_ROOT_PATH . '/modules/' . $this->_mDirname . '/xoops_version.php';
if (!file_exists($t_filePath)) {
function &_createPreferenceInformation($arr)
{
$arr['description'] = isset($arr['description']) ? $arr['description'] : null;
- $info =& new Legacy_PreferenceInformation($arr['name'], $arr['title'], $arr['description'], $arr['formtype'], $arr['valuetype'], $arr['default']);
+ $info = new Legacy_PreferenceInformation($arr['name'], $arr['title'], $arr['description'], $arr['formtype'], $arr['valuetype'], $arr['default']);
if (isset($arr['options'])) {
foreach ($arr['options'] as $name => $value) {
- $option =& new Legacy_PreferenceOptionInformation($name, $value);
+ $option = new Legacy_PreferenceOptionInformation($name, $value);
$info->mOption->add($option);
}
}
*/
function &loadPreferenceInformations()
{
- $collection =& new Legacy_PreferenceInfoCollection();
+ $collection = new Legacy_PreferenceInfoCollection();
$t_filePath = XOOPS_ROOT_PATH . '/modules/' . $this->_mDirname . '/xoops_version.php';
if (!file_exists($t_filePath)) {
function &_createBlockInformation(&$block)
{
- $info =& new Legacy_BlockInformation($block->get('func_num'), $block->get('name'), $block->get('func_file'), $block->get('show_func'), $block->get('edit_func'), $block->get('template'), $block->get('options'));
+ $info = new Legacy_BlockInformation($block->get('func_num'), $block->get('name'), $block->get('func_file'), $block->get('show_func'), $block->get('edit_func'), $block->get('template'), $block->get('options'));
return $info;
}
function &loadBlockInformations()
{
- $collection =& new Legacy_BlockInfoCollection();
+ $collection = new Legacy_BlockInfoCollection();
$handler =& xoops_getmodulehandler('newblocks', 'legacy');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('dirname', $this->_mDirname));
$criteria->add(new Criteria('block_type', 'M'));
function &_createPreferenceInformation(&$config)
{
- $info =& new Legacy_PreferenceInformation($config->get('conf_name'), $config->get('conf_title'), $config->get('conf_desc'), $config->get('conf_formtype'), $config->get('conf_valuetype'), $config->get('conf_value'));
+ $info = new Legacy_PreferenceInformation($config->get('conf_name'), $config->get('conf_title'), $config->get('conf_desc'), $config->get('conf_formtype'), $config->get('conf_valuetype'), $config->get('conf_value'));
$configOptionArr =& $config->getOptionItems();
foreach (array_keys($configOptionArr) as $idx) {
- $option =& new Legacy_PreferenceOptionInformation($configOptionArr[$idx]->get('confop_name'), $configOptionArr[$idx]->get('confop_value'));
+ $option = new Legacy_PreferenceOptionInformation($configOptionArr[$idx]->get('confop_name'), $configOptionArr[$idx]->get('confop_value'));
$info->mOption->add($option);
unset($option);
}
function &loadPreferenceInformations()
{
- $collection =& new Legacy_PreferenceInfoCollection();
+ $collection = new Legacy_PreferenceInfoCollection();
$handler =& xoops_gethandler('module');
$module =& $handler->getByDirname($this->_mDirname);
$handler =& xoops_gethandler('config');
- $criteria =& new Criteria('conf_modid', $module->get('mid'));
+ $criteria = new Criteria('conf_modid', $module->get('mid'));
$criteria->setSort('conf_order');
$configArr =& $handler->getConfigs($criteria);
}
if (XC_CLASS_EXISTS($className)) {
- $installer =& new $className();
+ $installer = new $className();
return $installer;
}
}
- $installer =& new $defaultClassName();
+ $installer = new $defaultClassName();
return $installer;
}
if (isset($module->modinfo['cube_style']) && $module->modinfo['cube_style'] == true) {
require_once XOOPS_MODULE_PATH . "/legacy/admin/class/Legacy_SQLScanner.class.php";
- $scanner =& new Legacy_SQLScanner();
+ $scanner = new Legacy_SQLScanner();
$scanner->setDB_PREFIX(XOOPS_DB_PREFIX);
$scanner->setDirname($module->get('dirname'));
//
// clear cache
//
- $xoopsTpl =& new XoopsTpl();
+ $xoopsTpl = new XoopsTpl();
$xoopsTpl->clear_cache(null, "mod_" . $module->get('dirname'));
foreach ($delTemplates as $tpl) {
// Deletes permissions
//
$gpermHandler =& xoops_gethandler('groupperm');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('gperm_name', 'block_read'));
$criteria->add(new Criteria('gperm_itemid', $block->get('bid')));
$criteria->add(new Criteria('gperm_modid', 1));
$tplHandler =& xoops_gethandler('tplfile');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('tpl_type', 'block'));
$criteria->add(new Criteria('tpl_tplset', 'default'));
$criteria->add(new Criteria('tpl_module', $module->get('dirname')));
{
$dirname = $module->get('dirname');
- $fileReader =& new Legacy_ModinfoX2FileReader($dirname);
+ $fileReader = new Legacy_ModinfoX2FileReader($dirname);
$preferences =& $fileReader->loadPreferenceInformations();
//
{
$dirname = $module->get('dirname');
- $fileReader =& new Legacy_ModinfoX2FileReader($dirname);
+ $fileReader = new Legacy_ModinfoX2FileReader($dirname);
$latestBlocks =& $fileReader->loadBlockInformations();
- $dbReader =& new Legacy_ModinfoX2DBReader($dirname);
+ $dbReader = new Legacy_ModinfoX2DBReader($dirname);
$currentBlocks =& $dbReader->loadBlockInformations();
$currentBlocks->update($latestBlocks);
{
$dirname = $module->get('dirname');
- $fileReader =& new Legacy_ModinfoX2FileReader($dirname);
+ $fileReader = new Legacy_ModinfoX2FileReader($dirname);
$latestPreferences =& $fileReader->loadPreferenceInformations();
- $dbReader =& new Legacy_ModinfoX2DBReader($dirname);
+ $dbReader = new Legacy_ModinfoX2DBReader($dirname);
$currentPreferences =& $dbReader->loadPreferenceInformations();
$currentPreferences->update($latestPreferences);
{
$handler =& xoops_getmodulehandler('newblocks', 'legacy');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('dirname', $module->get('dirname')));
$criteria->add(new Criteria('func_num', $info->mFuncNum));
{
$handler =& xoops_getmodulehandler('newblocks', 'legacy');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('dirname', $module->get('dirname')));
$criteria->add(new Criteria('func_num', $info->mFuncNum));
{
$handler =& xoops_gethandler('config');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('conf_modid', $module->get('mid')));
$criteria->add(new Criteria('conf_catid', 0));
$criteria->add(new Criteria('conf_name', $info->mName));
{
$handler =& xoops_gethandler('config');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('conf_modid', $module->get('mid')));
$criteria->add(new Criteria('conf_catid', 0));
$criteria->add(new Criteria('conf_name', $info->mName));
{
$handler =& xoops_getmodulehandler('newblocks', 'legacy');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('dirname', $module->get('dirname')));
$criteria->add(new Criteria('func_num', $func_num));
function _uninstallBlockTemplate(&$block, &$module, $tplset, &$log)
{
$handler =& xoops_gethandler('tplfile');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('tpl_refid', $block->get('bid')));
$criteria->add(new Criteria('tpl_file', $block->get('template')));
$criteria->add(new Criteria('tpl_module', $module->get('dirname')));
{
$handler =& xoops_gethandler('config');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('conf_modid', $module->get('mid')));
$criteria->add(new Criteria('conf_catid', 0));
$criteria->add(new Criteria('conf_order', $order));
$successFlag = true;
- $scanner =& new Legacy_SQLScanner();
+ $scanner = new Legacy_SQLScanner();
$scanner->setDB_PREFIX(XOOPS_DB_PREFIX);
$scanner->setDirname($module->get('dirname'));
$scanner->setBuffer($query);
function Legacy_ModuleInstaller()
{
- $this->mLog =& new Legacy_ModuleInstallLog();
+ $this->mLog = new Legacy_ModuleInstallLog();
}
/**
function Legacy_ModuleUninstaller()
{
- $this->mLog =& new Legacy_ModuleInstallLog();
- $this->m_fireNotifyUninstallTemplateBegun =& new XCube_Delegate();
+ $this->mLog = new Legacy_ModuleInstallLog();
+ $this->m_fireNotifyUninstallTemplateBegun = new XCube_Delegate();
$this->m_fireNotifyUninstallTemplateBegun->register("Legacy_ModuleUninstaller._fireNotifyUninstallTemplateBegun");
}
// Additional
//
$tplHandler =& xoops_gethandler('tplfile');
- $criteria =& new Criteria('tpl_module', $this->_mXoopsModule->get('dirname'));
+ $criteria = new Criteria('tpl_module', $this->_mXoopsModule->get('dirname'));
if(!$tplHandler->deleteAll($criteria)) {
$this->mLog->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_DELETE_BLOCK_TEMPLATES, $tplHandler->db->error()));
}
function Legacy_ModulePhasedUpgrader()
{
- $this->mLog =& new Legacy_ModuleInstallLog();
+ $this->mLog = new Legacy_ModuleInstallLog();
}
/**
//
// Set form properties
//
- $this->mFormProperties['bid'] =& new XCube_IntProperty('bid');
- $this->mFormProperties['options'] =& new XCube_StringArrayProperty('options');
- $this->mFormProperties['title'] =& new XCube_StringProperty('title');
- $this->mFormProperties['side'] =& new XCube_IntProperty('side');
- $this->mFormProperties['weight'] =& new XCube_IntProperty('weight');
- $this->mFormProperties['bcachetime'] =& new XCube_IntProperty('bcachetime');
- $this->mFormProperties['bmodule'] =& new XCube_IntArrayProperty('bmodule');
- $this->mFormProperties['groupid'] =& new XCube_IntArrayProperty('groupid');
+ $this->mFormProperties['bid'] = new XCube_IntProperty('bid');
+ $this->mFormProperties['options'] = new XCube_StringArrayProperty('options');
+ $this->mFormProperties['title'] = new XCube_StringProperty('title');
+ $this->mFormProperties['side'] = new XCube_IntProperty('side');
+ $this->mFormProperties['weight'] = new XCube_IntProperty('weight');
+ $this->mFormProperties['bcachetime'] = new XCube_IntProperty('bcachetime');
+ $this->mFormProperties['bmodule'] = new XCube_IntArrayProperty('bmodule');
+ $this->mFormProperties['groupid'] = new XCube_IntArrayProperty('groupid');
//
// Set field properties
//
- $this->mFieldProperties['bid'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['bid'] = new XCube_FieldProperty($this);
$this->mFieldProperties['bid']->setDependsByArray(array('required'));
$this->mFieldProperties['bid']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_BID);
- $this->mFieldProperties['title'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['title'] = new XCube_FieldProperty($this);
$this->mFieldProperties['title']->setDependsByArray(array('required','maxlength'));
$this->mFieldProperties['title']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_TITLE, '255');
$this->mFieldProperties['title']->addMessage('maxlength', _MD_LEGACY_ERROR_MAXLENGTH, _AD_LEGACY_LANG_TITLE, '255');
$this->mFieldProperties['title']->addVar('maxlength', '255');
- $this->mFieldProperties['side'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['side'] = new XCube_FieldProperty($this);
$this->mFieldProperties['side']->setDependsByArray(array('required', 'objectExist'));
$this->mFieldProperties['side']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_SIDE);
$this->mFieldProperties['side']->addMessage('objectExist', _AD_LEGACY_ERROR_OBJECTEXIST, _AD_LEGACY_LANG_SIDE);
$this->mFieldProperties['side']->addVar('handler', 'columnside');
$this->mFieldProperties['side']->addVar('module', 'legacy');
- $this->mFieldProperties['weight'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['weight'] = new XCube_FieldProperty($this);
$this->mFieldProperties['weight']->setDependsByArray(array('required', 'intRange'));
$this->mFieldProperties['weight']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_WEIGHT);
$this->mFieldProperties['weight']->addMessage('intRange', _AD_LEGACY_ERROR_INTRANGE, _AD_LEGACY_LANG_WEIGHT);
$this->mFieldProperties['weight']->addVar('min', '0');
$this->mFieldProperties['weight']->addVar('max', '65535');
- $this->mFieldProperties['bcachetime'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['bcachetime'] = new XCube_FieldProperty($this);
$this->mFieldProperties['bcachetime']->setDependsByArray(array('required', 'objectExist'));
$this->mFieldProperties['bcachetime']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_BCACHETIME);
$this->mFieldProperties['bcachetime']->addMessage('objectExist', _AD_LEGACY_ERROR_OBJECTEXIST, _AD_LEGACY_LANG_BCACHETIME);
$this->mFieldProperties['bcachetime']->addVar('handler', 'cachetime');
- $this->mFieldProperties['groupid'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['groupid'] = new XCube_FieldProperty($this);
$this->mFieldProperties['groupid']->setDependsByArray(array('objectExist'));
$this->mFieldProperties['groupid']->addMessage('objectExist', _AD_LEGACY_ERROR_OBJECTEXIST, _AD_LEGACY_LANG_GROUPID);
$this->mFieldProperties['groupid']->addVar('handler', 'group');
//
// Set form properties
//
- $this->mFormProperties['weight'] =& new XCube_IntArrayProperty('weight');
- $this->mFormProperties['side'] =& new XCube_IntArrayProperty('side');
- $this->mFormProperties['bcachetime'] =& new XCube_IntArrayProperty('bcachetime');
+ $this->mFormProperties['weight'] = new XCube_IntArrayProperty('weight');
+ $this->mFormProperties['side'] = new XCube_IntArrayProperty('side');
+ $this->mFormProperties['bcachetime'] = new XCube_IntArrayProperty('bcachetime');
//
// Set field properties
//
- $this->mFieldProperties['weight'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['weight'] = new XCube_FieldProperty($this);
$this->mFieldProperties['weight']->setDependsByArray(array('required','intRange'));
$this->mFieldProperties['weight']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_WEIGHT);
$this->mFieldProperties['weight']->addMessage('intRange', _AD_LEGACY_ERROR_INTRANGE, _AD_LEGACY_LANG_WEIGHT);
$this->mFieldProperties['weight']->addVar('min', '0');
$this->mFieldProperties['weight']->addVar('max', '65535');
- $this->mFieldProperties['side'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['side'] = new XCube_FieldProperty($this);
$this->mFieldProperties['side']->setDependsByArray(array('required','objectExist'));
$this->mFieldProperties['side']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_SIDE);
$this->mFieldProperties['side']->addMessage('objectExist', _AD_LEGACY_ERROR_OBJECTEXIST, _AD_LEGACY_LANG_SIDE);
$this->mFieldProperties['side']->addVar('handler', 'columnside');
$this->mFieldProperties['side']->addVar('module', 'legacy');
- $this->mFieldProperties['bcachetime'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['bcachetime'] = new XCube_FieldProperty($this);
$this->mFieldProperties['bcachetime']->setDependsByArray(array('required','objectExist'));
$this->mFieldProperties['bcachetime']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_BCACHETIME);
$this->mFieldProperties['bcachetime']->addMessage('objectExist', _AD_LEGACY_ERROR_OBJECTEXIST, _AD_LEGACY_LANG_BCACHETIME);
//
// Set form properties
//
- $this->mFormProperties['bid'] =& new XCube_IntProperty('bid');
+ $this->mFormProperties['bid'] = new XCube_IntProperty('bid');
//
// Set field properties
//
- $this->mFieldProperties['bid'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['bid'] = new XCube_FieldProperty($this);
$this->mFieldProperties['bid']->setDependsByArray(array('required'));
$this->mFieldProperties['bid']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_BID);
}
//
// Set form properties
//
- $this->mFormProperties['content'] =& new XCube_TextProperty('content');
- $this->mFormProperties['c_type'] =& new XCube_StringProperty('c_type');
+ $this->mFormProperties['content'] = new XCube_TextProperty('content');
+ $this->mFormProperties['c_type'] = new XCube_StringProperty('c_type');
//
// Set field properties
//
- $this->mFieldProperties['content'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['content'] = new XCube_FieldProperty($this);
$this->mFieldProperties['content']->setDependsByArray(array('required'));
$this->mFieldProperties['content']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_CONTENT);
- $this->mFieldProperties['c_type'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['c_type'] = new XCube_FieldProperty($this);
$this->mFieldProperties['c_type']->setDependsByArray(array('required','maxlength'));
$this->mFieldProperties['c_type']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_C_TYPE, '1');
$this->mFieldProperties['c_type']->addMessage('maxlength', _MD_LEGACY_ERROR_MAXLENGTH, _AD_LEGACY_LANG_C_TYPE, '1');
//
// Set form properties
//
- $this->mFormProperties['dirname'] =& new XCube_StringProperty('dirname');
- $this->mFormProperties['agree'] =& new XCube_BoolProperty('agree');
+ $this->mFormProperties['dirname'] = new XCube_StringProperty('dirname');
+ $this->mFormProperties['agree'] = new XCube_BoolProperty('agree');
//
// Set field properties
//
- $this->mFieldProperties['agree'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['agree'] = new XCube_FieldProperty($this);
$this->mFieldProperties['agree']->setDependsByArray(array('min'));
$this->mFieldProperties['agree']->addMessage('min', _AD_LEGACY_ERROR_PLEASE_AGREE);
$this->mFieldProperties['agree']->addVar('min', '1');
//
// Set form properties
//
- $this->mFormProperties['dirname'] =& new XCube_StringProperty('dirname');
- $this->mFormProperties['force'] =& new XCube_BoolProperty('force');
+ $this->mFormProperties['dirname'] = new XCube_StringProperty('dirname');
+ $this->mFormProperties['force'] = new XCube_BoolProperty('force');
}
function load(&$obj)
function Legacy_ModuleListFilterForm()
{
- $this->_mCriteria =& new CriteriaCompo();
+ $this->_mCriteria = new CriteriaCompo();
}
function getDefaultSortKey()
//
// Set form properties
//
- $this->mFormProperties['dirname'] =& new XCube_StringProperty('dirname');
- $this->mFormProperties['force'] =& new XCube_BoolProperty('force');
+ $this->mFormProperties['dirname'] = new XCube_StringProperty('dirname');
+ $this->mFormProperties['force'] = new XCube_BoolProperty('force');
}
function load(&$obj)
//
// Set form properties
//
- $this->mFormProperties['dirname'] =& new XCube_StringProperty('dirname');
- $this->mFormProperties['force'] =& new XCube_BoolProperty('force');
+ $this->mFormProperties['dirname'] = new XCube_StringProperty('dirname');
+ $this->mFormProperties['force'] = new XCube_BoolProperty('force');
}
function load(&$obj)
case 'text':
case 'string':
if ($config->get('conf_formtype') == 'textarea') {
- $this->mFormProperties[$config->get('conf_name')] =& new XCube_TextProperty($config->get('conf_name'));
+ $this->mFormProperties[$config->get('conf_name')] = new XCube_TextProperty($config->get('conf_name'));
}
else {
- $this->mFormProperties[$config->get('conf_name')] =& new XCube_StringProperty($config->get('conf_name'));
+ $this->mFormProperties[$config->get('conf_name')] = new XCube_StringProperty($config->get('conf_name'));
}
$this->set($config->get('conf_name'), $config->get('conf_value'));
break;
case 'float':
- $this->mFormProperties[$config->get('conf_name')] =& new XCube_FloatProperty($config->get('conf_name'));
+ $this->mFormProperties[$config->get('conf_name')] = new XCube_FloatProperty($config->get('conf_name'));
$this->set($config->get('conf_name'), $config->get('conf_value'));
- $this->mFieldProperties[$config->get('conf_name')] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties[$config->get('conf_name')] = new XCube_FieldProperty($this);
$this->mFieldProperties[$config->get('conf_name')]->setDependsByArray(array('required'));
$this->mFieldProperties[$config->get('conf_name')]->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, $config->get('conf_title'));
break;
case 'int':
- $this->mFormProperties[$config->get('conf_name')] =& new XCube_IntProperty($config->get('conf_name'));
+ $this->mFormProperties[$config->get('conf_name')] = new XCube_IntProperty($config->get('conf_name'));
$this->set($config->get('conf_name'), $config->get('conf_value'));
- $this->mFieldProperties[$config->get('conf_name')] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties[$config->get('conf_name')] = new XCube_FieldProperty($this);
$this->mFieldProperties[$config->get('conf_name')]->setDependsByArray(array('required'));
$this->mFieldProperties[$config->get('conf_name')]->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, $config->get('conf_title'));
break;
case 'other':
- $this->mFormProperties[$config->get('conf_name')] =& new XCube_StringProperty($config->get('conf_name'));
+ $this->mFormProperties[$config->get('conf_name')] = new XCube_StringProperty($config->get('conf_name'));
$this->set($config->get('conf_name'), $config->get('conf_value'));
break;
case 'array':
if($config->get('conf_formtype') == 'textarea') {
- $this->mFormProperties[$config->get('conf_name')] =& new XCube_StringProperty($config->get('conf_name'));
+ $this->mFormProperties[$config->get('conf_name')] = new XCube_StringProperty($config->get('conf_name'));
$this->set($config->get('conf_name'), implode("|", unserialize($config->get('conf_value'))));
}
else {
- $this->mFormProperties[$config->get('conf_name')] =& new XCube_StringArrayProperty($config->get('conf_name'));
+ $this->mFormProperties[$config->get('conf_name')] = new XCube_StringArrayProperty($config->get('conf_name'));
$t_arr = unserialize($config->get('conf_value'));
if (is_array($t_arr)) {
foreach ($t_arr as $_key => $_value) {
//
// Set form properties
//
- $this->mFormProperties['select'] =& new XCube_BoolArrayProperty('select');
- $this->mFormProperties['choose'] =& new XCube_StringArrayProperty('choose');
+ $this->mFormProperties['select'] = new XCube_BoolArrayProperty('select');
+ $this->mFormProperties['choose'] = new XCube_StringArrayProperty('choose');
}
/**
$actionName = isset($_GET['action']) ? trim($_GET['action']) : "ModuleList";
-$moduleRunner =& new Legacy_ActionFrame(true);
+$moduleRunner = new Legacy_ActionFrame(true);
$moduleRunner->setActionName($actionName);
$root->mController->mExecute->add(array(&$moduleRunner, 'execute'));
$this->mNavi =& $navi;
$this->_mHandler =& $handler;
- $this->_mCriteria =& new CriteriaCompo();
+ $this->_mCriteria = new CriteriaCompo();
$this->mNavi->mGetTotalItems->add(array(&$this, 'getTotalItems'));
}
function &_getPageNavi()
{
- $navi =& new XCube_PageNavigator($this->_getBaseUrl(), XCUBE_PAGENAVI_START);
+ $navi = new XCube_PageNavigator($this->_getBaseUrl(), XCUBE_PAGENAVI_START);
return $navi;
}
function Legacy_ActionFrame($admin)
{
$this->mAdminFlag = $admin;
- $this->mCreateAction =& new XCube_Delegate();
+ $this->mCreateAction = new XCube_Delegate();
$this->mCreateAction->register('Legacy_ActionFrame.CreateAction');
$this->mCreateAction->add(array(&$this, '_createAction'));
}
require_once $fileName;
if (XC_CLASS_EXISTS($className)) {
- $actionFrame->mAction =& new $className($actionFrame->mAdminFlag);
+ $actionFrame->mAction = new $className($actionFrame->mAdminFlag);
}
}
}
if (XC_CLASS_EXISTS($className)) {
- $instance =& new $className($module);
+ $instance = new $className($module);
}
else {
- $instance =& new Legacy_ModuleAdapter($module);
+ $instance = new Legacy_ModuleAdapter($module);
}
return $instance;
if (!XC_CLASS_EXISTS($className)) {
$filePath = XOOPS_ROOT_PATH . '/modules/' . $block->get('dirname') . '/blocks/' . $block->get('func_file');
if (!file_exists($filePath)) {
- $retBlock =& new Legacy_BlockProcedureAdapter($block);
+ $retBlock = new Legacy_BlockProcedureAdapter($block);
return $retBlock;
}
require_once $filePath;
if (!XC_CLASS_EXISTS($className)) {
- $retBlock =& new Legacy_BlockProcedureAdapter($block);
+ $retBlock = new Legacy_BlockProcedureAdapter($block);
return $retBlock;
}
}
- $retBlock =& new $className($block);
+ $retBlock = new $className($block);
}
else {
- $retBlock =& new Legacy_BlockProcedureAdapter($block);
+ $retBlock = new Legacy_BlockProcedureAdapter($block);
}
return $retBlock;
function Legacy_Module(&$xoopsModule)
{
parent::Legacy_ModuleAdapter($xoopsModule);
- $this->mGetAdminMenu =& new XCube_Delegate();
+ $this->mGetAdminMenu = new XCube_Delegate();
$this->mGetAdminMenu->register('Legacy_Module.getAdminMenu');
}
function &create()
{
- $ret =& new LegacyBlockctypeObject();
+ $ret = new LegacyBlockctypeObject();
return $ret;
}
function &create()
{
- $ret =& new LegacyColumnsideObject();
+ $ret = new LegacyColumnsideObject();
return $ret;
}
function loadGroup()
{
$handler =& xoops_gethandler('groupperm');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('gperm_modid', 1));
$criteria->add(new Criteria('gperm_itemid', $this->get('bid')));
$criteria->add(new Criteria('gperm_name', 'block_read'));
function loadBmodule()
{
$handler =& xoops_getmodulehandler('block_module_link', 'legacy');
- $criteria =& new Criteria('block_id', $this->get('bid'));
+ $criteria = new Criteria('block_id', $this->get('bid'));
$this->mBmodule =& $handler->getObjects($criteria);
}
//
$handler =& xoops_gethandler('groupperm');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('gperm_modid', 1));
$criteria->add(new Criteria('gperm_itemid', $obj->get('bid')));
$criteria->add(new Criteria('gperm_name', 'block_read'));
function LegacyThemeHandler(&$db)
{
- $this->mGetInstalledThemes =& new XCube_Delegate();
+ $this->mGetInstalledThemes = new XCube_Delegate();
$this->mGetInstalledThemes->register('LegacyThemeHandler.GetInstalledThemes');
}
function &create()
{
- $ret =& new LegacyThemeObject();
+ $ret = new LegacyThemeObject();
return $ret;
}
$actionName = isset($_GET['action']) ? trim($_GET['action']) : "Default";
-$moduleRunner =& new Legacy_ActionFrame(false);
+$moduleRunner = new Legacy_ActionFrame(false);
$moduleRunner->setActionName($actionName);
$root->mController->mExecute->add(array(&$moduleRunner, 'execute'));
$controller->mRoot->mContext->mBaseRenderSystemName = "Legacy_AdminRenderSystem";
- $this->mSetupBlock =& new XCube_Delegate();
+ $this->mSetupBlock = new XCube_Delegate();
$this->mSetupBlock->register('Legacy_AdminControllerStrategy.SetupBlock');
}
{
require_once XOOPS_LEGACY_PATH . "/admin/blocks/AdminActionSearch.class.php";
require_once XOOPS_LEGACY_PATH . "/admin/blocks/AdminSideMenu.class.php";
- $this->mController->_mBlockChain[] =& new Legacy_AdminActionSearch();
- $this->mController->_mBlockChain[] =& new Legacy_AdminSideMenu();
+ $this->mController->_mBlockChain[] = new Legacy_AdminActionSearch();
+ $this->mController->_mBlockChain[] = new Legacy_AdminSideMenu();
$this->mSetupBlock->call(new XCube_Ref($this->mController));
}
*/
function &_createRenderTarget()
{
- $this->mRender =& new XCube_RenderTarget();
+ $this->mRender = new XCube_RenderTarget();
$this->mRender->setType(XCUBE_RENDER_TARGET_TYPE_BLOCK);
return $this->mRender;
function &createCacheInfo()
{
- $cacheInfo =& new Legacy_BlockCacheInformation();
+ $cacheInfo = new Legacy_BlockCacheInformation();
$cacheInfo->setBlock($this);
return $cacheInfo;
}
function Legacy_ModuleCacheInformation()
{
parent::Legacy_AbstractCacheInformation();
- $this->mGetCacheFilePath =& new XCube_Delegate();
+ $this->mGetCacheFilePath = new XCube_Delegate();
$this->mGetCacheFilePath->register('Legacy_ModuleCacheInformation.GetCacheFilePath');
}
function Legacy_BlockCacheInformation()
{
parent::Legacy_AbstractCacheInformation();
- $this->mGetCacheFilePath =& new XCube_Delegate();
+ $this->mGetCacheFilePath = new XCube_Delegate();
$this->mGetCacheFilePath->register('Legacy_BlockCachInformation.getCacheFilePath');
}
//
$this->mSetupUser->register("Legacy_Controller.SetupUser");
- $this->mCheckLogin =& new XCube_Delegate();
+ $this->mCheckLogin = new XCube_Delegate();
$this->mCheckLogin->register("Site.CheckLogin");
- $this->mLogout =& new XCube_Delegate();
+ $this->mLogout = new XCube_Delegate();
$this->mLogout->register("Site.Logout");
- $this->mCreateLanguageManager =& new XCube_Delegate();
+ $this->mCreateLanguageManager = new XCube_Delegate();
$this->mCreateLanguageManager->register("Legacy_Controller.CreateLanguageManager");
- $this->mGetLanguageName =& new XCube_Delegate();
+ $this->mGetLanguageName = new XCube_Delegate();
$this->mGetLanguageName->register("Legacy_Controller.GetLanguageName");
- $this->mSetBlockCachePolicy =& new XCube_Delegate();
- $this->mSetModuleCachePolicy =& new XCube_Delegate();
+ $this->mSetBlockCachePolicy = new XCube_Delegate();
+ $this->mSetModuleCachePolicy = new XCube_Delegate();
- $this->mSetupDebugger =& new XCube_Delegate();
+ $this->mSetupDebugger = new XCube_Delegate();
$this->mSetupDebugger->add('Legacy_DebuggerManager::createInstance');
$this->mSetupTextFilter->add('Legacy_TextFilter::getInstance',XCUBE_DELEGATE_PRIORITY_FINAL-1);
- $this->_mNotifyRedirectToUser =& new XCube_Delegate();
+ $this->_mNotifyRedirectToUser = new XCube_Delegate();
set_magic_quotes_runtime(0); // ^^;
}
if ($adminStateFlag) {
require_once XOOPS_ROOT_PATH . "/modules/legacy/kernel/Legacy_AdminControllerStrategy.class.php";
- $this->_mStrategy =& new Legacy_AdminControllerStrategy($this);
+ $this->_mStrategy = new Legacy_AdminControllerStrategy($this);
}
else {
- $this->_mStrategy =& new Legacy_PublicControllerStrategy($this);
+ $this->_mStrategy = new Legacy_PublicControllerStrategy($this);
}
}
//
// Dummy save
//
- $renderBuffer =& new XCube_RenderTarget();
+ $renderBuffer = new XCube_RenderTarget();
}
if ($this->isEnableCacheFeature() && $blockProcedure->isEnableCache() && is_object($cacheInfo) && $cacheInfo->isEnableCache()) {
if ($language == null) {
$handler =& xoops_gethandler('config');
- $criteria =& new CriteriaCompo(new Criteria('conf_modid', 0));
+ $criteria = new CriteriaCompo(new Criteria('conf_modid', 0));
$criteria->add(new Criteria('conf_catid', XOOPS_CONF));
$criteria->add(new Criteria('conf_name', 'language'));
$configs =& $handler->getConfigs($criteria);
// try creating a instance again.
//
if (XC_CLASS_EXISTS($className)) {
- $languageManager =& new $className();
+ $languageManager = new $className();
}
else {
$filePath = XOOPS_ROOT_PATH . "/language/" . $language . "/LanguageManager.class.php";
}
if (XC_CLASS_EXISTS($className)) {
- $languageManager =& new $className();
+ $languageManager = new $className();
}
else {
//
// Default
//
- $languageManager =& new Legacy_LanguageManager();
+ $languageManager = new Legacy_LanguageManager();
}
}
}
//
if ($this->mRoot->getSiteConfig('Legacy', 'AutoPreload') == 1) {
$moduleHandler =& xoops_gethandler('module');
- $criteria =& new Criteria('isactive', 1);
+ $criteria = new Criteria('isactive', 1);
$moduleObjects =& $moduleHandler->getObjects($criteria);
foreach ($moduleObjects as $moduleObject) {
$mod_dir = $moduleObject->getVar('dirname');
if (XC_CLASS_EXISTS($className) && !isset($this->_mLoadedFilterNames[$className])) {
$this->_mLoadedFilterNames[$className] = true;
- $instance =& new $className($this);
+ $instance = new $className($this);
$this->addActionFilter($instance);
}
}
{
require_once XOOPS_ROOT_PATH . "/modules/legacy/kernel/Legacy_HttpContext.class.php";
- $context =& new Legacy_HttpContext();
- $request =& new XCube_HttpRequest();
+ $context = new Legacy_HttpContext();
+ $request = new XCube_HttpRequest();
$context->setRequest($request);
return $context;
require_once XOOPS_ROOT_PATH . $classPath;
if (XC_CLASS_EXISTS($className) && !isset($this->_mLoadedFilterNames[$className])) {
$this->_mLoadedFilterNames[$className] = true;
- $filter =& new $className($this->mController);
+ $filter = new $className($this->mController);
$this->mController->addActionFilter($filter);
unset($filter);
}
*/
function _createCacheInfo()
{
- $this->mCacheInfo =& new Legacy_ModuleCacheInformation();
+ $this->mCacheInfo = new Legacy_ModuleCacheInformation();
$this->mCacheInfo->mURL = xoops_getenv('REQUEST_URI');
$this->mCacheInfo->setModule($this->mXoopsModule);
}
*/
function &createCacheInfo()
{
- $this->mCacheInfo =& new Legacy_ModuleCacheInformation();
+ $this->mCacheInfo = new Legacy_ModuleCacheInformation();
$this->mCacheInfo->mURL = xoops_getenv('REQUEST_URI');
$this->mCacheInfo->setModule($this->mXoopsModule);
*/
function Legacy_TextFilter()
{
- $this->mMakeClickableConvertTable =& new XCube_Delegate;
+ $this->mMakeClickableConvertTable = new XCube_Delegate;
$this->mMakeClickableConvertTable->register('Legacy_TextFilter.MakeClickableConvertTable');
$this->mMakeClickableConvertTable->add('Legacy_TextFilter::makeClickableConvertTable', XCUBE_DELEGATE_PRIORITY_2);
- $this->mMakeXCodeConvertTable =& new XCube_Delegate;
+ $this->mMakeXCodeConvertTable = new XCube_Delegate;
$this->mMakeXCodeConvertTable->register('Legacy_TextFilter.MakeXCodeConvertTable');
$this->mMakeXCodeConvertTable->add('Legacy_TextFilter::makeXCodeConvertTable', XCUBE_DELEGATE_PRIORITY_2);
- $this->mMakeXCodeCheckImgPatterns =& new XCube_Delegate;
+ $this->mMakeXCodeCheckImgPatterns = new XCube_Delegate;
$this->mMakeXCodeCheckImgPatterns->register('Legacy_TextFilter.MakeXCodeCheckImgPatterns');
$this->mMakeXCodeCheckImgPatterns->add('Legacy_TextFilter::makeXCodeCheckImgPatterns', XCUBE_DELEGATE_PRIORITY_2);
- $this->mMakePreXCodeConvertTable =& new XCube_Delegate;
+ $this->mMakePreXCodeConvertTable = new XCube_Delegate;
$this->mMakePreXCodeConvertTable->register('Legacy_TextFilter.MakePreXCodeConvertTable');
$this->mMakePreXCodeConvertTable->add('Legacy_TextFilter::makePreXCodeConvertTable', XCUBE_DELEGATE_PRIORITY_2);
- $this->mMakePostXCodeConvertTable =& new XCube_Delegate;
+ $this->mMakePostXCodeConvertTable = new XCube_Delegate;
$this->mMakePostXCodeConvertTable->register('Legacy_TextFilter.MakePostXCodeConvertTable');
$this->mMakePostXCodeConvertTable->add('Legacy_TextFilter::makePostXCodeConvertTable', XCUBE_DELEGATE_PRIORITY_2);
}
*/
function &createCriterion()
{
- $criteria =& new Legacy_Criteria($this->mTypeInfoArr);
+ $criteria = new Legacy_Criteria($this->mTypeInfoArr);
return $criteria;
}
{
$obj = null;
if (XC_CLASS_EXISTS($this->mClass)) {
- $obj =& new $this->mClass();
+ $obj = new $this->mClass();
if($isNew)
$obj->setNew();
}
{
$ret = null;
- $criteria =& new Criteria($this->mPrimary, $id);
+ $criteria = new Criteria($this->mPrimary, $id);
$objArr =& $this->getObjects($criteria);
if (count($objArr) == 1) {
}
while($row = $this->db->fetchArray($result)) {
- $obj =& new $this->mClass();
+ $obj = new $this->mClass();
$obj->assignVars($row);
$obj->unsetNew();
// Because Criteria can generate the most appropriate sentence, use
// criteria even if this approach is few slow.
//
- $criteria =& new Criteria($this->mPrimary, $obj->get($this->mPrimary));
+ $criteria = new Criteria($this->mPrimary, $obj->get($this->mPrimary));
$sql = "DELETE FROM `" . $this->mTable . "` WHERE " . $this->_makeCriteriaElement4sql($criteria, $obj);
return $force ? $this->db->queryF($sql) : $this->db->query($sql);
$value = $this->mActiveToken;
}
- $token =& new EasyLex_SQLToken($type, $value);
+ $token = new EasyLex_SQLToken($type, $value);
$this->mTokens[] =& $token;
$this->mStatus = EASYLEX_SQL_UNKNOWN;
function Legacy_Mailer()
{
- $this->mConvertLocal =& new XCube_Delegate();
+ $this->mConvertLocal = new XCube_Delegate();
$this->mConvertLocal->register('Legacy_Mailer.ConvertLocal');
}
function ShadePlus_ServiceServer(&$service)
{
$this->_mService =& $service;
- $this->_mServer =& new ShadeSoap_NusoapServer();
+ $this->_mServer = new ShadeSoap_NusoapServer();
$this->_mServer->configureWSDL($this->_mService->mServiceName, $this->_mService->mNameSpace);
$this->_mServer->wsdl->schemaTargetNamespace = $this->_mService->mNameSpace;
function ShadePlus_SoapClient(&$service)
{
parent::XCube_AbstractServiceClient($service);
- $this->mClient =& new soap_client($service, true);
+ $this->mClient = new soap_client($service, true);
$this->mClient->decodeUTF8(false);
}
// instantiate wsdl object and parse wsdl file
$this->debug('instantiating wsdl class with doc: '.$endpoint);
- $this->wsdl =& new wsdl($this->wsdlFile,$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout);
+ $this->wsdl = new wsdl($this->wsdlFile,$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout);
}
$this->appendDebug($this->wsdl->getDebug());
$this->wsdl->clearDebug();
$xoopsConfig = $root->mContext->mXoopsConfig;
require_once XOOPS_ROOT_PATH . '/class/template.php';
- $xoopsTpl =& new XoopsTpl();
+ $xoopsTpl = new XoopsTpl();
$xoopsTpl->assign(array('xoops_sitename' => htmlspecialchars($xoopsConfig['sitename']),
'xoops_themecss' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/style.css',
'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/',
if (!$accessAllowFlag) {
require_once XOOPS_ROOT_PATH . '/class/template.php';
- $xoopsTpl =& new XoopsTpl();
+ $xoopsTpl = new XoopsTpl();
$xoopsTpl->assign(array('xoops_sitename' => htmlspecialchars($xoopsConfig['sitename']),
'xoops_isuser' => is_object( $context->mXoopsUser ),//GIJ
'xoops_themecss' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/style.css',
}
elseif (!empty($_GET['cube_module_uninstall'])) {
require_once XOOPS_ROOT_PATH . '/class/template.php';
- $xoopsTpl =& new XoopsTpl();
+ $xoopsTpl = new XoopsTpl();
$xoopsTpl->assign('cube_module_uninstall', htmlspecialchars($_GET['cube_module_uninstall'],ENT_QUOTES));
$xoopsTpl->assign( array(
'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename']),
ksort( $optionModules ) ;
$optionModules = array_values( $optionModules ) ;
require_once XOOPS_ROOT_PATH . '/class/template.php';
- $xoopsTpl =& new XoopsTpl();
+ $xoopsTpl = new XoopsTpl();
$xoopsTpl->assign('uninstalled',$retArray['uninstalled']);
$xoopsTpl->assign('disabled',$retArray['disabled']);
$xoopsTpl->assign('option',$optionModules);
if (!$accessAllowFlag) {
require_once XOOPS_ROOT_PATH . '/class/template.php';
- $xoopsTpl =& new XoopsTpl();
+ $xoopsTpl = new XoopsTpl();
$xoopsTpl->assign(array('xoops_sitename' => htmlspecialchars($xoopsConfig['sitename']),
'xoops_themecss' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/style.css',
'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/',
// TODO remove
//
parent::XCube_ActionFilter($controller);
- $this->mIsSelectableTheme =& new XCube_Delegate();
+ $this->mIsSelectableTheme = new XCube_Delegate();
$this->mIsSelectableTheme->register('Legacy_ThemeSelect.IsSelectableTheme');
$controller->mSetupUser->add(array(&$this, 'doChangeTheme'));
function _setupActionForm()
{
- $this->mActionForm =& new LegacyRender_TplfileCloneForm();
+ $this->mActionForm = new LegacyRender_TplfileCloneForm();
$this->mActionForm->prepare();
}
function _setupActionForm()
{
- $this->mActionForm =& new LegacyRender_TplfileAdminDeleteForm();
+ $this->mActionForm = new LegacyRender_TplfileAdminDeleteForm();
$this->mActionForm->prepare();
}
{
require_once XOOPS_ROOT_PATH . "/class/template.php";
- $xoopsTpl =& new XoopsTpl();
+ $xoopsTpl = new XoopsTpl();
$xoopsTpl->clear_cache('db:' . $this->mObject->get('tpl_file'));
$xoopsTpl->clear_compiled_tpl('db:' . $this->mObject->get('tpl_file'));
function _setupActionForm()
{
- $this->mActionForm =& new LegacyRender_TplfileEditForm();
+ $this->mActionForm = new LegacyRender_TplfileEditForm();
$this->mActionForm->prepare();
}
//
require_once XOOPS_ROOT_PATH . "/class/template.php";
- $xoopsTpl =& new XoopsTpl();
+ $xoopsTpl = new XoopsTpl();
$xoopsTpl->clear_cache('db:' . $this->mObject->get('tpl_file'));
$xoopsTpl->clear_compiled_tpl('db:' . $this->mObject->get('tpl_file'));
function prepare(&$controller, &$xoopsUser, $moduleConfig)
{
LegacyRender_AbstractListAction::prepare($controller, $xoopsUser, $moduleConfig);
- $this->mActionForm =& new LegacyRender_TplfileUploadForm();
+ $this->mActionForm = new LegacyRender_TplfileUploadForm();
$this->mActionForm->prepare();
}
$successFlag &= $handler->insert($obj);
- $xoopsTpl =& new XoopsTpl();
+ $xoopsTpl = new XoopsTpl();
$xoopsTpl->clear_cache('db:' . $obj->get('tpl_file'));
$xoopsTpl->clear_compiled_tpl('db:' . $obj->get('tpl_file'));
}
function _setupActionForm()
{
- $this->mActionForm =& new LegacyRender_TplsetCloneForm();
+ $this->mActionForm = new LegacyRender_TplsetCloneForm();
$this->mActionForm->prepare();
}
function _setupActionForm()
{
- $this->mActionForm =& new LegacyRender_TplsetDeleteForm();
+ $this->mActionForm = new LegacyRender_TplsetDeleteForm();
$this->mActionForm->prepare();
}
case 'tar':
if (@function_exists('gzencode')) {
require_once XOOPS_ROOT_PATH . "/class/tardownloader.php";
- $ret =& new XoopsTarDownloader();
+ $ret = new XoopsTarDownloader();
}
break;
case 'zip':
if (@function_exists('gzcompress')) {
require_once XOOPS_ROOT_PATH . "/class/zipdownloader.php";
- $ret =& new XoopsZipDownloader();
+ $ret = new XoopsZipDownloader();
}
break;
}
function _setupActionForm()
{
- $this->mActionForm =& new LegacyRender_TplsetEditForm();
+ $this->mActionForm = new LegacyRender_TplsetEditForm();
$this->mActionForm->prepare();
}
function prepare(&$controller, &$xoopsUser, $moduleConfig)
{
LegacyRender_AbstractListAction::prepare($controller, $xoopsUser, $moduleConfig);
- $this->mActionForm =& new LegacyRender_TplsetSelectForm();
+ $this->mActionForm = new LegacyRender_TplsetSelectForm();
$this->mActionForm->prepare();
}
function &_getFilterForm()
{
- $filter =& new LegacyRender_TplsetFilterForm($this->_getPageNavi(), $this->_getHandler());
+ $filter = new LegacyRender_TplsetFilterForm($this->_getPageNavi(), $this->_getHandler());
return $filter;
}
if (!$this->mActionForm->hasError()) {
$configHandler =& xoops_gethandler('config');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('conf_name', 'template_set'));
$criteria->add(new Criteria('conf_catid', XOOPS_CONF));
function prepare(&$controller, &$xoopsUser)
{
- $this->mActionForm =& new LegacyRender_TplsetUploadForm();
+ $this->mActionForm = new LegacyRender_TplsetUploadForm();
$this->mActionForm->prepare();
}
}
require_once XOOPS_ROOT_PATH . "/class/class.tar.php";
- $tar =& new tar();
+ $tar = new tar();
$formFile = $this->mActionForm->get('upload');
}
require_once XOOPS_ROOT_PATH.'/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php';
-$smarty =& new Legacy_AdminSmarty();
+$smarty = new Legacy_AdminSmarty();
$smarty->register_modifier("theme", "Legacy_modifier_css_theme");
$smarty->register_function("stylesheet", "Legacy_function_stylesheet");
//
// Set form properties
//
- $this->mFormProperties['select'] =& new XCube_BoolArrayProperty('select');
- $this->mFormProperties['choose'] =& new XCube_StringArrayProperty('choose');
+ $this->mFormProperties['select'] = new XCube_BoolArrayProperty('select');
+ $this->mFormProperties['choose'] = new XCube_StringArrayProperty('choose');
}
/**
//
// Set form properties
//
- $this->mFormProperties['tpl_id'] =& new XCube_IntProperty('tpl_id');
+ $this->mFormProperties['tpl_id'] = new XCube_IntProperty('tpl_id');
//
// Set field properties
//
- $this->mFieldProperties['tpl_id'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['tpl_id'] = new XCube_FieldProperty($this);
$this->mFieldProperties['tpl_id']->setDependsByArray(array('required'));
$this->mFieldProperties['tpl_id']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_TPL_ID);
}
//
// Set form properties
//
- $this->mFormProperties['tpl_tplset'] =& new XCube_StringProperty('tpl_tplset');
+ $this->mFormProperties['tpl_tplset'] = new XCube_StringProperty('tpl_tplset');
//
// Set field properties
//
- $this->mFieldProperties['tpl_tplset'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['tpl_tplset'] = new XCube_FieldProperty($this);
$this->mFieldProperties['tpl_tplset']->setDependsByArray(array('required'));
$this->mFieldProperties['tpl_tplset']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_TPL_TPLSET);
}
$tplset = $this->get('tpl_tplset');
$handler =& xoops_getmodulehandler('tplset', 'legacyRender');
- $criteria =& new Criteria('tplset_name', $this->get('tpl_tplset'));
+ $criteria = new Criteria('tplset_name', $this->get('tpl_tplset'));
$objs =& $handler->getObjects($criteria);
if (count($objs) == 0) {
//
// Set form properties
//
- $this->mFormProperties['tpl_id'] =& new XCube_IntProperty('tpl_id');
- $this->mFormProperties['tpl_desc'] =& new XCube_StringProperty('tpl_desc');
- $this->mFormProperties['tpl_source'] =& new XCube_TextProperty('tpl_source');
+ $this->mFormProperties['tpl_id'] = new XCube_IntProperty('tpl_id');
+ $this->mFormProperties['tpl_desc'] = new XCube_StringProperty('tpl_desc');
+ $this->mFormProperties['tpl_source'] = new XCube_TextProperty('tpl_source');
//
// Set field properties
//
- $this->mFieldProperties['tpl_id'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['tpl_id'] = new XCube_FieldProperty($this);
$this->mFieldProperties['tpl_id']->setDependsByArray(array('required'));
$this->mFieldProperties['tpl_id']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_TPL_ID);
- $this->mFieldProperties['tpl_desc'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['tpl_desc'] = new XCube_FieldProperty($this);
$this->mFieldProperties['tpl_desc']->setDependsByArray(array('maxlength'));
$this->mFieldProperties['tpl_desc']->addMessage('maxlength', _AD_LEGACYRENDER_ERROR_MAXLENGTH, _AD_LEGACYRENDER_LANG_TPL_DESC, '255');
$this->mFieldProperties['tpl_desc']->addVar('maxlength', 255);
- $this->mFieldProperties['tpl_source'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['tpl_source'] = new XCube_FieldProperty($this);
$this->mFieldProperties['tpl_source']->setDependsByArray(array('required'));
$this->mFieldProperties['tpl_source']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_TPL_SOURCE);
}
// The template of the specified template-set will be loaded in Tplset Object.
// See business-logic.
//
- $subCriteria =& new CriteriaCompo();
+ $subCriteria = new CriteriaCompo();
$subCriteria->add(new Criteria('tpl_tplset', 'default'), 'OR');
$handler =& xoops_getmodulehandler('tplset');
//
// Set form properties
//
- $this->mFormProperties['upload'] =& new XCube_FileArrayProperty('upload');
+ $this->mFormProperties['upload'] = new XCube_FileArrayProperty('upload');
//
// Set field properties
//
// Set form properties
//
- $this->mFormProperties['tplset_id'] =& new XCube_IntProperty('tplset_id');
- $this->mFormProperties['tplset_name'] =& new XCube_StringProperty('tplset_name');
- $this->mFormProperties['tplset_credits'] =& new XCube_TextProperty('tplset_credits');
+ $this->mFormProperties['tplset_id'] = new XCube_IntProperty('tplset_id');
+ $this->mFormProperties['tplset_name'] = new XCube_StringProperty('tplset_name');
+ $this->mFormProperties['tplset_credits'] = new XCube_TextProperty('tplset_credits');
//
// Set field properties
//
- $this->mFieldProperties['tplset_name'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['tplset_name'] = new XCube_FieldProperty($this);
$this->mFieldProperties['tplset_name']->setDependsByArray(array('required','maxlength'));
$this->mFieldProperties['tplset_name']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_TPLSET_NAME, '50');
$this->mFieldProperties['tplset_name']->addMessage('maxlength', _AD_LEGACYRENDER_ERROR_MAXLENGTH, _AD_LEGACYRENDER_LANG_TPLSET_NAME, '50');
//
// Set form properties
//
- $this->mFormProperties['tplset_id'] =& new XCube_IntProperty('tplset_id');
+ $this->mFormProperties['tplset_id'] = new XCube_IntProperty('tplset_id');
//
// Set field properties
//
- $this->mFieldProperties['tplset_id'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['tplset_id'] = new XCube_FieldProperty($this);
$this->mFieldProperties['tplset_id']->setDependsByArray(array('required'));
$this->mFieldProperties['tplset_id']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_TPLSET_ID);
}
//
// Set form properties
//
- $this->mFormProperties['tplset_id'] =& new XCube_IntProperty('tplset_id');
- $this->mFormProperties['tplset_desc'] =& new XCube_StringProperty('tplset_desc');
- $this->mFormProperties['tplset_credits'] =& new XCube_TextProperty('tplset_credits');
+ $this->mFormProperties['tplset_id'] = new XCube_IntProperty('tplset_id');
+ $this->mFormProperties['tplset_desc'] = new XCube_StringProperty('tplset_desc');
+ $this->mFormProperties['tplset_credits'] = new XCube_TextProperty('tplset_credits');
//
// Set field properties
//
- $this->mFieldProperties['tplset_id'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['tplset_id'] = new XCube_FieldProperty($this);
$this->mFieldProperties['tplset_id']->setDependsByArray(array('required'));
$this->mFieldProperties['tplset_id']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_TPLSET_ID);
- $this->mFieldProperties['tplset_desc'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['tplset_desc'] = new XCube_FieldProperty($this);
$this->mFieldProperties['tplset_desc']->setDependsByArray(array('maxlength'));
$this->mFieldProperties['tplset_desc']->addMessage('maxlength', _AD_LEGACYRENDER_ERROR_MAXLENGTH, _AD_LEGACYRENDER_LANG_TPLSET_DESC, '255');
$this->mFieldProperties['tplset_desc']->addVar('maxlength', 255);
//
// Set form properties
//
- $this->mFormProperties['tplset_name'] =& new XCube_StringProperty('tplset_name');
+ $this->mFormProperties['tplset_name'] = new XCube_StringProperty('tplset_name');
}
function validateTplset_name()
//
// Set form properties
//
- $this->mFormProperties['upload'] =& new XCube_FileProperty('upload');
- $this->mFormProperties['tplset_name'] =& new XCube_StringProperty('tplset_name');
+ $this->mFormProperties['upload'] = new XCube_FileProperty('upload');
+ $this->mFormProperties['tplset_name'] = new XCube_StringProperty('tplset_name');
//
// Set field properties
//
- $this->mFieldProperties['upload'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['upload'] = new XCube_FieldProperty($this);
$this->mFieldProperties['upload']->setDependsByArray(array('required'));
$this->mFieldProperties['upload']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_TPLSET_UPLOAD_FILE);
- $this->mFieldProperties['tplset_name'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['tplset_name'] = new XCube_FieldProperty($this);
$this->mFieldProperties['tplset_name']->setDependsByArray(array('maxlength'));
$this->mFieldProperties['tplset_name']->addMessage('maxlength', _AD_LEGACYRENDER_ERROR_MAXLENGTH, _AD_LEGACYRENDER_LANG_TPLSET_DESC, '50');
$this->mFieldProperties['tplset_name']->addVar('maxlength', '50');
$actionName = isset($_GET['action']) ? trim($_GET['action']) : "TplsetList";
-$moduleRunner =& new LegacyRender_ActionFrame(true);
+$moduleRunner = new LegacyRender_ActionFrame(true);
$moduleRunner->setActionName($actionName);
$root->mController->mExecute->add(array(&$moduleRunner, 'execute'));
$this->mNavi =& $navi;
$this->_mHandler =& $handler;
- $this->_mCriteria =& new CriteriaCompo();
+ $this->_mCriteria = new CriteriaCompo();
$this->mNavi->mGetTotalItems->add(array(&$this, 'getTotalItems'));
}
function &_getPageNavi()
{
- $navi =& new XCube_PageNavigator($this->_getBaseUrl(), XCUBE_PAGENAVI_START);
+ $navi = new XCube_PageNavigator($this->_getBaseUrl(), XCUBE_PAGENAVI_START);
return $navi;
}
function LegacyRender_ActionFrame($admin)
{
$this->mAdminFlag = $admin;
- $this->mCreateAction =& new XCube_Delegate();
+ $this->mCreateAction = new XCube_Delegate();
$this->mCreateAction->register('LegacyRender_ActionFrame.CreateAction');
$this->mCreateAction->add(array(&$this, '_createAction'));
}
require_once $fileName;
if (XC_CLASS_EXISTS($className)) {
- $actionFrame->mAction =& new $className($actionFrame->mAdminFlag);
+ $actionFrame->mAction = new $className($actionFrame->mAdminFlag);
}
}
function LegacyRender_Module(&$xoopsModule)
{
parent::Legacy_ModuleAdapter($xoopsModule);
- $this->mGetAdminMenu =& new XCube_Delegate();
+ $this->mGetAdminMenu = new XCube_Delegate();
$this->mGetAdminMenu->register('LegacyRender_Module.getAdminMenu');
}
{
$this->loadSource();
- $obj =& new LegacyRenderTplfileObject();
+ $obj = new LegacyRenderTplfileObject();
$obj->set('tpl_refid', $this->get('tpl_refid'));
$obj->set('tpl_module', $this->get('tpl_module'));
$handler =& xoops_getmodulehandler('tplfile', 'legacyRender');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('tpl_tplset', $tplset));
$criteria->add(new Criteria('tpl_file', $this->get('tpl_file')));
* @return array array of the object.
*/
function &find($tplsetName, $type = null, $refId = null, $module = null, $file = null) {
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('tpl_tplset', $tplsetName));
if ($type != null) {
$criteria->add(new Criteria('tpl_type', $type));
$tplfileHandler =& xoops_getmodulehandler('tplfile', 'legacyRender');
foreach ($modules as $module) {
- $modtpl =& new LegacyRenderModuletplObject();
+ $modtpl = new LegacyRenderModuletplObject();
$modtpl->set('mid', $module->get('mid'));
$modtpl->set('dirname', $module->get('dirname'));
$themeDir = XOOPS_THEME_PATH . "/" . $dirname;
if (is_dir($themeDir)) {
- $theme =& new XCube_Theme();
+ $theme = new XCube_Theme();
$theme->mDirname = $dirname;
if ($theme->loadManifesto($themeDir . "/manifesto.ini.php")) {
{
$this->mController =& $controller;
- $this->mSmarty =& new Legacy_AdminSmarty();
+ $this->mSmarty = new Legacy_AdminSmarty();
$this->mSmarty->register_modifier("theme", "Legacy_modifier_theme");
$this->mSmarty->register_function("stylesheet", "Legacy_function_stylesheet");
function Legacy_RenderSystem()
{
parent::XCube_RenderSystem();
- $this->mSetupXoopsTpl =& new XCube_Delegate();
+ $this->mSetupXoopsTpl = new XCube_Delegate();
$this->mSetupXoopsTpl->register('Legacy_RenderSystem.SetupXoopsTpl');
- $this->mBeginRender =& new XCube_Delegate();
+ $this->mBeginRender = new XCube_Delegate();
$this->mBeginRender->register("Legacy_RenderSystem.BeginRender");
}
$context =& $root->getContext();
$textFilter =& $root->getTextFilter();
- $this->mXoopsTpl =& new Legacy_XoopsTpl();
+ $this->mXoopsTpl = new Legacy_XoopsTpl();
$this->mSetupXoopsTpl->call(new XCube_Ref($this->mXoopsTpl));
$this->mXoopsTpl->xoops_setCaching(0);
$renderTarget = null;
switch ($type) {
case XCUBE_RENDER_TARGET_TYPE_MAIN:
- $renderTarget =& new Legacy_RenderTargetMain();
+ $renderTarget = new Legacy_RenderTargetMain();
break;
case LEGACY_RENDER_TARGET_TYPE_BLOCK:
- $renderTarget =& new XCube_RenderTarget();
+ $renderTarget = new XCube_RenderTarget();
$renderTarget->setAttribute('legacy_buffertype', LEGACY_RENDER_TARGET_TYPE_BLOCK);
break;
default:
- $renderTarget =& new XCube_RenderTarget();
+ $renderTarget = new XCube_RenderTarget();
break;
}
{
$handler =& xoops_getmodulehandler('tplfile', 'legacyRender');
- $criteria =& new Criteria('tpl_module', $module->get('dirname'));
+ $criteria = new Criteria('tpl_module', $module->get('dirname'));
$tplfileArr = $handler->getObjects($criteria);
- $xoopsTpl =& new XoopsTpl();
+ $xoopsTpl = new XoopsTpl();
foreach (array_keys($tplfileArr) as $key) {
$xoopsTpl->clear_cache('db:' . $tplfileArr[$key]->get('tpl_file'));
$xoopsTpl->clear_compiled_tpl('db:' . $tplfileArr[$key]->get('tpl_file'));
*/
function _setupActionForm()
{
- $this->mActionForm =& new User_EditUserForm($this->mConfig);
+ $this->mActionForm = new User_EditUserForm($this->mConfig);
$this->mActionForm->prepare();
}
function prepare(&$controller, &$xoopsUser, $moduleConfig)
{
- $this->mActionForm =& new User_LostPassEditForm();
+ $this->mActionForm = new User_LostPassEditForm();
$this->mActionForm->prepare();
}
$this->mActionForm->fetch();
$userHandler =& xoops_gethandler('user');
- $criteria =& new CriteriaCompo(new Criteria('email', $this->mActionForm->get('email')));
+ $criteria = new CriteriaCompo(new Criteria('email', $this->mActionForm->get('email')));
$criteria->add(new Criteria('pass', $this->mActionForm->get('code'), '=', '', 'LEFT(%s, 5)'));
$lostUserArr =& $userHandler->getObjects($criteria);
$newpass = xoops_makepass();
$extraVars['newpass'] = $newpass;
- $builder =& new User_LostPass2MailBuilder();
- $director =& new User_LostPassMailDirector($builder, $lostUser, $controller->mRoot->mContext->getXoopsConfig(), $extraVars);
+ $builder = new User_LostPass2MailBuilder();
+ $director = new User_LostPassMailDirector($builder, $lostUser, $controller->mRoot->mContext->getXoopsConfig(), $extraVars);
$director->contruct();
$xoopsMailer =& $builder->getResult();
if (!$xoopsMailer->send()) {
return USER_FRAME_VIEW_ERROR;
}
- $builder =& new User_LostPass1MailBuilder();
- $director =& new User_LostPassMailDirector($builder, $lostUser, $controller->mRoot->mContext->getXoopsConfig());
+ $builder = new User_LostPass1MailBuilder();
+ $director = new User_LostPassMailDirector($builder, $lostUser, $controller->mRoot->mContext->getXoopsConfig());
$director->contruct();
$xoopsMailer =& $builder->getResult();
$this->mObjectHandler->insert($this->mObject, true);
if ($this->mConfig['activation_type'] == 2) {
- $builder =& new User_RegistAdminCommitMailBuilder();
- $director =& new User_UserRegistMailDirector($builder, $this->mObject, $controller->mRoot->mContext->getXoopsConfig(), $this->mConfig);
+ $builder = new User_RegistAdminCommitMailBuilder();
+ $director = new User_UserRegistMailDirector($builder, $this->mObject, $controller->mRoot->mContext->getXoopsConfig(), $this->mConfig);
$director->contruct();
$mailer=&$builder->getResult();
if ($mailer->send()) {
$this->mSelfDelete = $moduleConfig['self_delete'];
$this->mSelfDeleteConfirmMessage = $moduleConfig['self_delete_confirm'];
- $this->mActionForm =& new User_UserDeleteForm();
+ $this->mActionForm = new User_UserDeleteForm();
$this->mActionForm->prepare();
- $this->_mDoDelete =& new XCube_Delegate('bool &', 'Legacy_Controller', 'XoopsUser');
+ $this->_mDoDelete = new XCube_Delegate('bool &', 'Legacy_Controller', 'XoopsUser');
$this->_mDoDelete->register('User_UserDeleteAction._doDelete');
$this->_mDoDelete->add(array(&$this, "_doDelete"));
{
if ($this->mConfig['reg_dispdsclmr'] != 0 && $this->mConfig['reg_disclaimer'] != null) {
$this->mEnableAgreeFlag = true;
- $this->mActionForm =& new User_RegisterAgreeEditForm($this->mConfig);
+ $this->mActionForm = new User_RegisterAgreeEditForm($this->mConfig);
} else {
- $this->mActionForm =& new User_RegisterEditForm($this->mConfig);
+ $this->mActionForm = new User_RegisterEditForm($this->mConfig);
}
$this->mActionForm->prepare();
$builder = ($activationType == 0) ? new User_RegistUserActivateMailBuilder()
: new User_RegistUserAdminActivateMailBuilder();
- $director =& new User_UserRegistMailDirector($builder, $this->mNewUser, $controller->mRoot->mContext->getXoopsConfig(), $this->mConfig);
+ $director = new User_UserRegistMailDirector($builder, $this->mNewUser, $controller->mRoot->mContext->getXoopsConfig(), $this->mConfig);
$director->contruct();
$mailer =& $builder->getResult();
function _eventNotifyMail(&$controller)
{
if($this->mConfig['new_user_notify'] == 1 && !empty($this->mConfig['new_user_notify_group'])) {
- $builder =& new User_RegistUserNotifyMailBuilder();
- $director =& new User_UserRegistMailDirector($builder, $this->mNewUser, $controller->mRoot->mContext->getXoopsConfig(), $this->mConfig);
+ $builder = new User_RegistUserNotifyMailBuilder();
+ $director = new User_UserRegistMailDirector($builder, $this->mNewUser, $controller->mRoot->mContext->getXoopsConfig(), $this->mConfig);
$director->contruct();
$mailer =& $builder->getResult();
$mailer->send();
function _processActionForm()
{
- $this->mActionForm =& new User_UserConfirmForm();
+ $this->mActionForm = new User_UserConfirmForm();
$this->mActionForm->prepare();
}
function _setupActionForm()
{
- $this->mActionForm =& new User_GroupAdminDeleteForm();
+ $this->mActionForm = new User_GroupAdminDeleteForm();
$this->mActionForm->prepare();
}
function _setupActionForm()
{
- $this->mActionForm =& new User_GroupAdminEditForm();
+ $this->mActionForm = new User_GroupAdminEditForm();
$this->mActionForm->prepare();
}
function &_getFilterForm()
{
- $filter =& new User_GroupFilterForm($this->_getPageNavi(), $this->_getHandler());
+ $filter = new User_GroupFilterForm($this->_getPageNavi(), $this->_getHandler());
return $filter;
}
//
// TODO Because this action has two form, we should prepare two action forms.
//
- $this->mActionForm =& new User_GroupMemberEditForm();
+ $this->mActionForm = new User_GroupMemberEditForm();
$this->mActionForm->prepare();
}
//
$total = $memberHandler->getUserCountByGroup($groupid);
- $this->mPageNavi =& new XCube_PageNavigator("./index.php?action=GroupMember", XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); // TODO get controller->getUrl() ?
+ $this->mPageNavi = new XCube_PageNavigator("./index.php?action=GroupMember", XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); // TODO get controller->getUrl() ?
$this->mPageNavi->setTotalItems($total);
$this->mPageNavi->addExtra('groupid', $groupid);
$this->mPageNavi->setPerpage(USER_GROUPMEMBER_DEFAULT_PERPAGE);
function prepare(&$controller, &$xoopsUser, &$moduleConfig)
{
- $this->mActionForm =& new User_GroupPermEditForm();
+ $this->mActionForm = new User_GroupPermEditForm();
$this->mActionForm->prepare();
}
//
$gpermHandler =& xoops_gethandler('groupperm');
- $criteria =& new CriteriaCompo();
+ $criteria = new CriteriaCompo();
$criteria->add(new Criteria('gperm_groupid', $this->mGroup->get('groupid')));
$criteria->add(new Criteria('gperm_modid', 1));
$criteria->add(new Criteria('gperm_name', 'system_admin'));
$gpermHandler->deleteAll($criteria);
foreach ($this->mActionForm->get('system') as $sid => $value) {
- $item =& new User_PermissionSystemAdminItem($sid, null);
- $perm =& new User_Permission($this->mGroup->get('groupid'), $item);
+ $item = new User_PermissionSystemAdminItem($sid, null);
+ $perm = new User_Permission($this->mGroup->get('groupid'), $item);
$perm->save();
$memberHandler =& xoops_gethandler('member');
$total = $memberHandler->getUserCountByGroup($this->mGroup->get('groupid'));
- $this->mPageNavi =& new XCube_PageNavigator("./index.php?action=GroupProperty", XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); // TODO get controller->getUrl() ?
+ $this->mPageNavi = new XCube_PageNavigator("./index.php?action=GroupProperty", XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); // TODO get controller->getUrl() ?
$this->mPageNavi->setTotalItems($total);
$this->mPageNavi->addExtra('groupid', $this->mGroup->get('groupid'));
if (file_exists($infoFile)) {
require_once $infoFile;
if (!empty($modversion['category'])) {
- $item =& new User_PermissionSystemAdminItem($modversion['category'], $modversion['name']);
- $this->mSystemPermissions[] =& new User_Permission($this->mGroup->get('groupid'), $item);
+ $item = new User_PermissionSystemAdminItem($modversion['category'], $modversion['name']);
+ $this->mSystemPermissions[] = new User_Permission($this->mGroup->get('groupid'), $item);
unset($item);
}
$t_activeModuleIDs = array();
foreach ($this->_mActiveModules as $module) {
- $item =& new User_PermissionModuleItem($module);
- $this->mPermissions[] =& new User_Permission($this->mGroup->get('groupid'), $item);
+ $item = new User_PermissionModuleItem($module);
+ $this->mPermissions[] = new User_Permission($this->mGroup->get('groupid'), $item);
$t_activeModuleIDs[] = $module->get('mid');
$this->mBlockPermissions[$idx] = array();
foreach ($this->_mActiveBlocks[$side] as $block) {
- $item =& new User_PermissionBlockItem($block);
- $this->mBlockPermissions[$idx][] =& new User_Permission($this->mGroup->get('groupid'), $item);
+ $item = new User_PermissionBlockItem($block);
+ $this->mBlockPermissions[$idx][] = new User_Permission($this->mGroup->get('groupid'), $item);
unset ($block);
}
function _setupActionForm()
{
- $this->mActionForm =& new User_MailjobAdminDeleteForm();
+ $this->mActionForm = new User_MailjobAdminDeleteForm();
$this->mActionForm->prepare();
}
function _setupActionForm()
{
- $this->mActionForm =& new User_MailjobAdminEditForm();
+ $this->mActionForm = new User_MailjobAdminEditForm();
$this->mActionForm->prepare();
- $this->mPageNavi =& new XCube_PageNavigator('./index?action=MailjobEdit', XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE);
- $this->mFilter =& new User_UserSearchFilterForm($this->mPageNavi, xoops_getmodulehandler('users_search', 'user'));
+ $this->mPageNavi = new XCube_PageNavigator('./index?action=MailjobEdit', XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE);
+ $this->mFilter = new User_UserSearchFilterForm($this->mPageNavi, xoops_getmodulehandler('users_search', 'user'));
$this->mFilter->fetch();
function &_getFilterForm()
{
- $filter =& new User_MailjobFilterForm($this->_getPageNavi(), $this->_getHandler());
+ $filter = new User_MailjobFilterForm($this->_getPageNavi(), $this->_getHandler());
return $filter;
}
$this->mMailjob =& $handler->get($id);
if (is_object($this->mMailjob)) {
- $this->mActionForm =& new User_MailjobAdminSendForm();
+ $this->mActionForm = new User_MailjobAdminSendForm();
$this->mActionForm->prepare();
$this->mActionForm->load($this->mMailjob);
}
function prepare(&$controller, &$xoopsUser, &$moduleConfig)
{
- $this->mActionForm =& new User_Mailjob_linkAdminDeletesForm();
+ $this->mActionForm = new User_Mailjob_linkAdminDeletesForm();
$this->mActionForm->prepare();
$this->mActionForm->fetch();
function &_getFilterForm()
{
- $filter =& new User_Mailjob_linkFilterForm($this->_getPageNavi(), $this->_getHandler());
+ $filter = new User_Mailjob_linkFilterForm($this->_getPageNavi(), $this->_getHandler());
return $filter;
}
function _setupActionForm()
{
- $this->mActionForm =& new User_UserAdminDeleteForm();
+ $this->mActionForm = new User_UserAdminDeleteForm();
$this->mActionForm->prepare();
}
function _setupActionForm()
{
- $this->mActionForm =& new User_UserAdminEditForm();
+ $this->mActionForm = new User_UserAdminEditForm();
$this->mActionForm->prepare();
}
function &_getFilterForm()
{
- $filter =& new User_UserFilterForm($this->_getPageNavi(), $this->_getHandler());
+ $filter = new User_UserFilterForm($this->_getPageNavi(), $this->_getHandler());
return $filter;
}
function prepare(&$controller, &$xoopsUser)
{
- $this->mActionForm =& new User_UserSearchForm();
+ $this->mActionForm = new User_UserSearchForm();
$this->mActionForm->prepare();
}
function &_getFilterForm()
{
- $filter =& new User_UserSearchFilterForm($this->_getPageNavi(), $this->_getHandler());
+ $filter = new User_UserSearchFilterForm($this->_getPageNavi(), $this->_getHandler());
return $filter;
}
function User_UserViewAction()
{
parent::User_AbstractViewAction();
- $this->mGetUserPosts =& new XCube_Delegate();
+ $this->mGetUserPosts = new XCube_Delegate();
$this->mGetUserPosts->register('User_UserViewAction.GetUserPosts');
}
function prepare(&$controller, &$xoopsUser, $moduleConfig)
{
parent::prepare($controller, $xoopsUser, $moduleConfig);
- $this->mActionForm =& new User_RecountForm();
+ $this->mActionForm = new User_RecountForm();
$this->mActionForm->prepare();
}
*/
class User_UserAdminEditForm extends XCube_ActionForm
{
- var $_mIsNew;
+ var $_mIs new;
function getTokenName()
{
//
// Set form properties
//
- $this->mFormProperties['uid'] =& new XCube_IntProperty('uid');
- $this->mFormProperties['name'] =& new XCube_StringProperty('name');
- $this->mFormProperties['uname'] =& new XCube_StringProperty('uname');
- $this->mFormProperties['email'] =& new XCube_StringProperty('email');
- $this->mFormProperties['user_viewemail'] =& new XCube_IntProperty('user_viewemail');
- $this->mFormProperties['pass'] =& new XCube_StringProperty('pass');
- $this->mFormProperties['vpass'] =& new XCube_StringProperty('vpass');
- $this->mFormProperties['level'] =& new XCube_IntProperty('level');
- $this->mFormProperties['timezone_offset'] =& new XCube_FloatProperty('timezone_offset');
- $this->mFormProperties['user_mailok'] =& new XCube_IntProperty('user_mailok');
- $this->mFormProperties['groups'] =& new XCube_IntArrayProperty('groups');
+ $this->mFormProperties['uid'] =& new XCube_IntProperty('uid');
+ $this->mFormProperties['name'] =& new XCube_StringProperty('name');
+ $this->mFormProperties['uname'] =& new XCube_StringProperty('uname');
+ $this->mFormProperties['email'] =& new XCube_StringProperty('email');
+ $this->mFormProperties['user_viewemail'] =& new XCube_IntProperty('user_viewemail');
+ $this->mFormProperties['pass'] =& new XCube_StringProperty('pass');
+ $this->mFormProperties['vpass'] =& new XCube_StringProperty('vpass');
+ $this->mFormProperties['level'] =& new XCube_IntProperty('level');
+ $this->mFormProperties['timezone_offset'] =& new XCube_FloatProperty('timezone_offset');
+ $this->mFormProperties['user_mailok'] =& new XCube_IntProperty('user_mailok');
+ $this->mFormProperties['groups'] =& new XCube_IntArrayProperty('groups');
//
// Set field properties
//
- $this->mFieldProperties['uid'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['uid'] =& new XCube_FieldProperty($this);
$this->mFieldProperties['uid']->setDependsByArray(array('required'));
$this->mFieldProperties['uid']->addMessage('required', _MD_USER_ERROR_REQUIRED, _MD_USER_LANG_UID);
- $this->mFieldProperties['name'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['name'] =& new XCube_FieldProperty($this);
$this->mFieldProperties['name']->setDependsByArray(array('maxlength'));
$this->mFieldProperties['name']->addMessage('maxlength', _MD_USER_ERROR_MAXLENGTH, _MD_USER_LANG_NAME, '60');
$this->mFieldProperties['name']->addVar('maxlength', 60);
- $this->mFieldProperties['uname'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['uname'] =& new XCube_FieldProperty($this);
$this->mFieldProperties['uname']->setDependsByArray(array('required','maxlength'));
$this->mFieldProperties['uname']->addMessage('required', _MD_USER_ERROR_REQUIRED, _MD_USER_LANG_UNAME, '25');
$this->mFieldProperties['uname']->addMessage('maxlength', _MD_USER_ERROR_MAXLENGTH, _MD_USER_LANG_UNAME, '25');
$this->mFieldProperties['uname']->addVar('maxlength', 25);
- $this->mFieldProperties['email'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['email'] =& new XCube_FieldProperty($this);
$this->mFieldProperties['email']->addMessage('required', _MD_USER_ERROR_REQUIRED, _MD_USER_LANG_EMAIL, '60');
$this->mFieldProperties['email']->setDependsByArray(array('required', 'maxlength', 'email'));
$this->mFieldProperties['email']->addMessage('maxlength', _MD_USER_ERROR_MAXLENGTH, _MD_USER_LANG_EMAIL, '60');
$this->mFieldProperties['email']->addVar('maxlength', 60);
$this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL, _MD_USER_LANG_EMAIL);
- $this->mFieldProperties['pass'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['pass'] =& new XCube_FieldProperty($this);
$this->mFieldProperties['pass']->setDependsByArray(array('maxlength'));
$this->mFieldProperties['pass']->addMessage('maxlength', _MD_USER_ERROR_MAXLENGTH, _MD_USER_LANG_PASS, '32');
$this->mFieldProperties['pass']->addVar('maxlength', 32);
- $this->mFieldProperties['vpass'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['vpass'] =& new XCube_FieldProperty($this);
$this->mFieldProperties['vpass']->setDependsByArray(array('maxlength'));
$this->mFieldProperties['vpass']->addMessage('maxlength', _MD_USER_ERROR_MAXLENGTH, _MD_USER_LANG_PASS, '32');
$this->mFieldProperties['vpass']->addVar('maxlength', 32);
- $this->mFieldProperties['level'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['level'] =& new XCube_FieldProperty($this);
$this->mFieldProperties['level']->setDependsByArray(array('required'));
$this->mFieldProperties['level']->addMessage('required', _MD_USER_ERROR_REQUIRED, _MD_USER_LANG_LEVEL);
- $this->mFieldProperties['timezone_offset'] =& new XCube_FieldProperty($this);
+ $this->mFieldProperties['timezone_offset'] =& new XCube_FieldProperty($this);
$this->mFieldProperties['timezone_offset']->setDependsByArray(array('required'));
$this->mFieldProperties['timezone_offset']->addMessage('required', _MD_USER_ERROR_REQUIRED, _MD_USER_LANG_TIMEZONE_OFFSET);
}
{
if ($this->get('uname') != null) {
$handler =& xoops_gethandler('user');
- $criteria =& new CriteriaCompo(new Criteria('uname', $this->get('uname')));
+ $criteria =& new CriteriaCompo( new Criteria('uname', $this->get('uname')));
if ($this->get('uid')) {
- $criteria->add(new Criteria('uid', $this->get('uid'), '<>'));
+ $criteria->add( new Criteria('uid', $this->get('uid'), '<>'));
}
if ($handler->getCount($criteria) > 0) {
$this->addErrorMessage(_AD_USER_ERROR_UNAME_NO_UNIQUE);
// email unique check
//
$userHandler=&xoops_gethandler('user');
- $criteria =& new CriteriaCompo(new Criteria('email', $this->get('email')));
+ $criteria =& new CriteriaCompo( new Criteria('email', $this->get('email')));
if ($this->get('uid') > 0) {
- $criteria->add(new Criteria('uid', $this->get('uid'), '<>'));
+ $criteria->add( new Criteria('uid', $this->get('uid'), '<>'));
}
if ($userHandler->getCount($criteria) > 0) {
$this->addErrorMessage(_MD_USER_ERROR_EMAILTAKEN);
}
/**
- * Checks the password field and the confirm password field. If it's a new
+ * Checks the password field and the confirm password field. If it's a new
* user registration, password is must. And, if password isn't empty, the
* password and the confirm password have to be the same value.
*/
$this->set('vpass', '');
}
}
- elseif($this->_mIsNew) {
+ elseif($this->_mIs new) {
$this->addErrorMessage(XCube_Utils::formatMessage(_MD_USER_ERROR_REQUIRED, _MD_USER_LANG_PASS));
}
}
$this->set('timezone_offset', $obj->get('timezone_offset'));
$this->set('user_mailok', $obj->get('user_mailok'));
- $this->_mIsNew = $obj->isNew();
+ $this->_mIs new = $obj->is new();
$groups = $obj->getGroups();
- if ($this->_mIsNew) {
+ if ($this->_mIs new) {
$this->set('groups', 0, XOOPS_GROUP_USERS);
}
else {