Subversion Repositories ALCASAR

Rev

Rev 776 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 776 Rev 777
Line 379... Line 379...
379
			return $this->getInstance($name);
379
			return $this->getInstance($name);
380
		} else {
380
		} else {
381
			return false;
381
			return false;
382
		}
382
		}
383
	}
383
	}
-
 
384
	public function deleteSection($sectionName, $instanceName=null){
-
 
385
		$t = false;
-
 
386
		foreach ($this->_items as $key => $item){
-
 
387
			if ($item->getType() !== 'section'){
-
 
388
				continue;
-
 
389
			}
-
 
390
			if ($item->getName() === $sectionName){
-
 
391
				if ($instanceName!==null){
-
 
392
					if ($item->getInstanceName() === $instanceName){
-
 
393
						unset($this->_items[$key]);
-
 
394
						$t = true;
-
 
395
					}
-
 
396
				} else {
-
 
397
					unset($this->_items[$key]);
-
 
398
					$t = true;
-
 
399
				}
-
 
400
			}
-
 
401
		}
-
 
402
		return $t;
-
 
403
	}
384
	public function setSection($sectionName, sectionItem $sectionItem){
404
	public function setSection($sectionName, sectionItem $sectionItem){
385
		$t = false;
405
		$t = false;
386
		foreach ($this->_items as $key => $item){
406
		foreach ($this->_items as $key => $item){
387
			if ($item->getType() !== 'section'){
407
			if ($item->getType() !== 'section'){
388
				continue;
408
				continue;