public function actionUpdate($name=false)
	{
		if ($name == false || defined('CII_CONFIG'))
			return false;

		// Performs an update check, and if an update is available performs the update
		if ($this->updateCheck($name))
		{
			if (!$this->actionInstall($name))
				return $this->returnError(500, Yii::t('Api.main', 'Update failed'), false);
		}

		// If an update is unecessary, dump the current details
		return $this->actionDetails($name);
	}
public function actionUpdate($name=false)
	{
		if ($name == false || defined('CII_CONFIG'))
			return false;

		// Performs an update check, and if an update is available performs the update
		if ($this->updateCheck($name))
		{
			if (!$this->actionInstall($name))
				return $this->returnError(500, Yii::t('Api.main', 'Update failed'), false);
		}

		// If an update is unecessary, dump the current details
		return $this->actionDetails($name);
	}
public function actionUpdate ( $ name = false ) { if ( $ name == false || defined ( 'CII_CONFIG' ) ) return false ; // Performs an update check, and if an update is available performs the update if ( $ this -> updateCheck ( $ name ) ) { if ( ! $ this -> actionInstall ( $ name ) ) return $ this -> returnError ( 500 , Yii :: t ( 'Api.main' , 'Update failed' ) , false ) ; } // If an update is unecessary, dump the current details return $ this -> actionDetails ( $ name ) ; }
Performs an update
@return boolean
Performs an update