public function newItem(string $key = null)
    {
        $nb_medioteca_item = $this->isBuiltIn()
                           ? new CNabuBuiltInMediotecaItem()
                           : new CNabuMediotecaItem()
        ;
        $nb_medioteca_item->setKey($key);

        return $this->addItemObject($nb_medioteca_item);
    }
public function newItem(string $key = null)
    {
        $nb_medioteca_item = $this->isBuiltIn()
                           ? new CNabuBuiltInMediotecaItem()
                           : new CNabuMediotecaItem()
        ;
        $nb_medioteca_item->setKey($key);

        return $this->addItemObject($nb_medioteca_item);
    }
public function newItem ( string $ key = null ) { $ nb_medioteca_item = $ this -> isBuiltIn ( ) ? new CNabuBuiltInMediotecaItem ( ) : new CNabuMediotecaItem ( ) ; $ nb_medioteca_item -> setKey ( $ key ) ; return $ this -> addItemObject ( $ nb_medioteca_item ) ; }
Create a new Item in the list.
@param string $key Optional key of the item to be assigned.
@return CNabuMediotecaItem Returns the created Item instance.
Create a new Item in the list .