public function createTarget($targetId, $base)
    {

        if(!is_string($base) && !is_array($base)){
            throw new \common_Exception('Invalid base format');
        }

        $array = array(
            'base'  => $base,
            'available' => array()
        );
        $this->set($targetId, $array);
    }
public function createTarget($targetId, $base)
    {

        if(!is_string($base) && !is_array($base)){
            throw new \common_Exception('Invalid base format');
        }

        $array = array(
            'base'  => $base,
            'available' => array()
        );
        $this->set($targetId, $array);
    }
public function createTarget ( $ targetId , $ base ) { if ( ! is_string ( $ base ) && ! is_array ( $ base ) ) { throw new \ common_Exception ( 'Invalid base format' ) ; } $ array = array ( 'base' => $ base , 'available' => array ( ) ) ; $ this -> set ( $ targetId , $ array ) ; }
Adds a new target to the System

@param string $targetId
@param string|array $base
@throws \common_Exception
Adds a new target to the System