public function getCheckedComponents()
    {
        $returnValue = array();

        
    	// Sort the checked components to make them ordered in the same
        // way the related components where added.
        $components = $this->getComponents();
        $checkedComponents = array();
        foreach ($components as $c){
        	foreach ($this->checkedComponents as $cC){
        		if ($cC === $c){
        			array_push($checkedComponents, $cC);
        		}
        	}
        }
        
        
        $returnValue = $checkedComponents;
        

        return (array) $returnValue;
    }