Create an video channel
@param string $title
@return VideoChannel
542471
public function add($title) {
        $channel = new VideoChannel($this->getContext());
        $this->addChild($channel);
        $channel->setProperty("Title",$title);
        $channel->setProperty("TileHtmlColor","#0072c6");
        $qry = new CreateEntityQuery($channel);
        $this->getContext()->addQuery($qry, $channel);
        return $channel;
    }
560689
public function setItem($link, $title)
    {
        $this->setLink($link);
        $this->setTitle($title);
        
        return $this;
    }
321783
public function getByTitle($title)
    {
        return new SPList(
            $this->getContext(),
            new ResourcePathServiceOperation($this->getContext(),$this->getResourcePath(),"getByTitle",array(rawurlencode($title)))
        );
    }
183298
public function add_new_child_item($title='') {
        $sc         = new cc_item();
        $sc->title  = $title;
        $this->add_child_item($sc);
        return $sc;
    }
1218956
public function setTitle( $title ) {
		if ( $this->title !== $title ) {
			$this->title = $title;
			$this->updateTitle();
		}

		return $this;
	}
843287
public function addItem($title)
    {
        if (is_object($title) && $title instanceof Item) {
            $item = $title;
        } else {
            $item = new Item($this, $title);
        }

        $this->item_collection->push($item);

        return $item;
    }
861453
public function createItem($title,$link, $date){
        $item = new jRSS20Item();
        $item->title = $title;
        $item->id = $item->link = $link;
        $item->published = $date;
        return $item;
    }
641851
public function generatePageTitle($title)
    {
        // INIT
        $ret              = $title;
        $rawTitle         = !empty($GLOBALS['TSFE']->altPageTitle) ?
            $GLOBALS['TSFE']->altPageTitle : $GLOBALS['TSFE']->page['title'];
        $currentPid       = $GLOBALS['TSFE']->id;
        $skipPrefixSuffix = false;
        $applySitetitle   = true;

        $pageTitlePrefix = false;
        $pageTitleSuffix = false;

        $this->stdWrapList = array();

        $sitetitle = $this->tsSetup['sitetitle'];

        // Use browsertitle if available
        if (!empty($GLOBALS['TSFE']->page['tx_metaseo_pagetitle_rel'])) {
            $rawTitle = $GLOBALS['TSFE']->page['tx_metaseo_pagetitle_rel'];
        }

        // Call hook
        GeneralUtility::callHookAndSignal(
            __CLASS__,
            'pageTitleSetup',
            $this,
            $this->tsSetupSeo
        );

        // get stdwrap list
        if (!empty($this->tsSetupSeo['pageTitle.']['stdWrap.'])) {
            $this->stdWrapList = $this->tsSetupSeo['pageTitle.']['stdWrap.'];
        }

        // Apply stdWrap before
        if (!empty($this->stdWrapList['before.'])) {
            $rawTitle = $this->cObj->stdWrap($rawTitle, $this->stdWrapList['before.']);
        }

        // #######################################################################
        // RAW PAGE TITLE
        // #######################################################################
        if (!empty($GLOBALS['TSFE']->page['tx_metaseo_pagetitle'])) {
            $ret = $GLOBALS['TSFE']->page['tx_metaseo_pagetitle'];

            // Add template prefix/suffix
            if (empty($this->tsSetupSeo['pageTitle.']['applySitetitleToPagetitle'])) {
                $applySitetitle = false;
            }

            $skipPrefixSuffix = true;
        }


        // #######################################################################
        // PAGE TITLE PREFIX/SUFFIX
        // #######################################################################
        if (!$skipPrefixSuffix) {
            $pageTitlePrefix = $this->applyInheritance('tx_metaseo_pagetitle_prefix', $currentPid);
            $pageTitleSuffix = $this->applyInheritance('tx_metaseo_pagetitle_suffix', $currentPid);

            // #################
            // Process settings from access point
            // #################
            $connector = $this->objectManager->get('Metaseo\\Metaseo\\Connector');
            $store     = $connector->getStore('pagetitle');

            if (!empty($store)) {
                if (isset($store['pagetitle.title'])) {
                    $rawTitle = $store['pagetitle.title'];
                }

                if (isset($store['pagetitle.prefix'])) {
                    $pageTitlePrefix = $store['pagetitle.prefix'];
                }

                if (isset($store['pagetitle.suffix'])) {
                    $pageTitleSuffix = $store['pagetitle.suffix'];
                }

                if (isset($store['pagetitle.absolute'])) {
                    $rawTitle = $store['pagetitle.absolute'];

                    $pageTitlePrefix = false;
                    $pageTitleSuffix = false;

                    if (empty($this->tsSetupSeo['pageTitle.']['applySitetitleToPagetitle'])) {
                        $applySitetitle = false;
                    }
                }

                if (isset($store['pagetitle.sitetitle'])) {
                    $sitetitle = $store['pagetitle.sitetitle'];
                }
            }

            // Apply prefix and suffix
            if ($pageTitlePrefix !== false || $pageTitleSuffix !== false) {
                $ret = $rawTitle;

                if ($pageTitlePrefix !== false) {
                    $ret = $pageTitlePrefix . ' ' . $ret;
                }

                if ($pageTitleSuffix !== false) {
                    $ret .= ' ' . $pageTitleSuffix;
                }

                if (!empty($this->tsSetupSeo['pageTitle.']['applySitetitleToPrefixSuffix'])) {
                    $applySitetitle = true;
                }
            } else {
                $ret = $rawTitle;
            }
        }

        // #######################################################################
        // APPLY SITETITLE (from setup)
        // #######################################################################
        if ($applySitetitle) {
            $ret = $this->applySitetitleToPagetitle($sitetitle, $ret);
        }

        // Apply stdWrap after
        if (!empty($this->stdWrapList['after.'])) {
            $ret = $this->cObj->stdWrap($ret, $this->stdWrapList['after.']);
        }

        return $ret;
    }
60856
public function createCard($title, $paragraph = null)
    {
        $collapseId = dash($title);
        $link = new Contents\Link($title, '#' . $collapseId);
        $link->attributes->addAttribute('data-toggle', 'collapse');
        $link->attributes->addAttribute('data-parent', '#' . $this->attributes->getAttributeId());

        $card = new Card();

        $card->header->attributes->addAttribute('role', 'tab');
        $card->header->childNodes->push($link);

        $block = $card->createBlock();
        $block->attributes->setAttributeId($collapseId);

        if (isset($paragraph)) {
            $block->setParagraph($paragraph);
        }

        if ($this->childNodes->count() > 0) {
            $card->hide();
        }

        $this->childNodes->push($card);

        return $this->childNodes->last();
    }
3417
public function title($title = null)
    {
        if ($title === null) {
            return $this->_title;
        }
        $this->_title = $title;

        return $this;
    }
1244901
public function title($title, $url = null)
    {
        $this->title = $title;
        $this->url = $url;

        return $this;
    }
869447
public static function create(string $title = null, string $subtitle = null, Image $art = null, Image $backgroundImage = null): self
    {
        $metadata = new self();

        $metadata->title           = $title;
        $metadata->subtitle        = $subtitle;
        $metadata->art             = $art;
        $metadata->backgroundImage = $backgroundImage;

        return $metadata;
    }
826538
public function setPageName($title)
    {
        $this->oldTitle = $this->pageName;
        $this->pageName = $title;

        if ($this->pageName && $this->getContentRoute()) {
            $this->getContentRoute()->setName($this->pageName);
        }

        return $this;
    }
862474
public function add_module($title) {
        $this->resource_count++;
        $resource_str = str_pad($this->resource_count.'',6,'0',STR_PAD_LEFT);
        $identifier = 'T_'.$resource_str;

        $xpath = new \DOMXpath($this);

        $items = $xpath->query(CC::item_xpath)->item(0);
        $module = $this->add_child_ns(CC::CC_1_1_CP, $items, 'item', null, array('identifier' => $identifier));
        $new_title = $this->add_child_ns(CC::CC_1_1_CP, $module, 'title', $title);
        return $module;
    }
421506
public function add($title, $options = '')
    {
        if (!is_array($options)) {
            $url = $options;
            $options = array();
            $options['url'] = $url;
        }

        $options['parent'] = $this->id;

        return $this->builder->add($title, $options);
    }
879763
public function addGroupTextareaAction($title)
	{
		$id = ($s = sizeof($this->group_actions)) ? ($s + 1) : 1;

		return $this->group_actions[$id] = new GroupTextareaAction($title);
	}
870738
public function set_title($title) {
        $xpath = new \DOMXpath($this);
        $general = $xpath->query(CC::lom_general_xpath)->item(0);
        $new_title = $this->add_child_ns(CC::LOMIMSCC_NS, $general, 'title');
        $new_string = $this->add_child_ns(CC::LOMIMSCC_NS, $new_title, 'string', $title, array("language" => "en-US"));
    }