src-dev/Mouf/Controllers/ConfigController.php
public function deleteConstant($name, $selfedit = "false") {
		$this->selfedit = $selfedit;
		
		if ($selfedit == "true") {
			$this->moufManager = MoufManager::getMoufManager();
		} else {
			$this->moufManager = MoufManager::getMoufManagerHiddenInstance();
		}
		$this->configManager = $this->moufManager->getConfigManager();
		
		$this->configManager->unregisterConstant($name);
		
		$this->moufManager->rewriteMouf();

		// Now, let's write the constant for our environment:
		$this->constantsList = $this->configManager->getDefinedConstants();
		unset($this->constantsList[$name]);
		$this->configManager->setDefinedConstants($this->constantsList);
		
		
		header("Location: .?selfedit=".$selfedit);
	}
public function deleteConstant($name, $selfedit = "false") {
		$this->selfedit = $selfedit;
		
		if ($selfedit == "true") {
			$this->moufManager = MoufManager::getMoufManager();
		} else {
			$this->moufManager = MoufManager::getMoufManagerHiddenInstance();
		}
		$this->configManager = $this->moufManager->getConfigManager();
		
		$this->configManager->unregisterConstant($name);
		
		$this->moufManager->rewriteMouf();

		// Now, let's write the constant for our environment:
		$this->constantsList = $this->configManager->getDefinedConstants();
		unset($this->constantsList[$name]);
		$this->configManager->setDefinedConstants($this->constantsList);
		
		
		header("Location: .?selfedit=".$selfedit);
	}
public function deleteConstant ( $ name , $ selfedit = "false" ) { $ this -> selfedit = $ selfedit ; if ( $ selfedit == "true" ) { $ this -> moufManager = MoufManager :: getMoufManager ( ) ; } else { $ this -> moufManager = MoufManager :: getMoufManagerHiddenInstance ( ) ; } $ this -> configManager = $ this -> moufManager -> getConfigManager ( ) ; $ this -> configManager -> unregisterConstant ( $ name ) ; $ this -> moufManager -> rewriteMouf ( ) ; // Now, let's write the constant for our environment:
 $ this -> constantsList = $ this -> configManager -> getDefinedConstants ( ) ; unset ( $ this -> constantsList [ $ name ] ) ; $ this -> configManager -> setDefinedConstants ( $ this -> constantsList ) ; header ( "Location: .?selfedit=" . $ selfedit ) ; }
Deletes a constant.

@Action
@Logged
@param string $name
Deletes a constant .