Get List by title
@param $title
@return SPList
321783
public function getByTitle($title)
    {
        return new SPList(
            $this->getContext(),
            new ResourcePathServiceOperation($this->getContext(),$this->getResourcePath(),"getByTitle",array(rawurlencode($title)))
        );
    }
813765
protected function getUnifiedTitle($title)
    {
        $title = mb_strtolower($title, 'utf8');
        $title = preg_replace('/\W+/u', ' ', $title);

        return trim($title);
    }
1082857
public static function title($title = null)
    {
        if (is_null($title)) {
            $title = config('app.title');
        }

        $tag = static::open('title');
        $tag .= $title;
        $tag .= static::close();

        return $tag;
    }
505287
public function setTitle($title) {
		if (is_array($title) && empty($title)) {
			$this->title = new \stdClass;
		} else {
			$this->title = $title;
		}

		return $this;
	}
271205
private function getTypeFromTitle($title)
    {
        $title_types = array(
            'stylesheet'    => 'UserStylesheet',
            'script'        => 'UserScript',
            'title'         => 'StoryTitle',
        );

        foreach ($title_types as $type => $name) {
            if ($title == $name) {
                return $type;
            }
        }

        // Let's assume if the title isn't on the list, the entity is a passage
        return 'passage';
    }
1038860
public function menuItemLabel($title = null) {
		$result = '';
		if (empty($title)) {
			return $result;
		}

		$result = $this->Html->tag('span', $title, ['class' => 'menu-item-label visible-xs-inline']);

		return $result;
	}
1100343
public function Title($Title = NULL, $Subtitle = NULL) {
      if (!is_null($Title))
         $this->SetData('Title', $Title);
      
      if (!is_null($Subtitle))
         $this->SetData('_Subtitle', $Subtitle);
      
      return $this->Data('Title');
   }
794201
public static function filterTitle(string $title): string
    {
        $title = html_entity_decode($title);
        $title = static::filterPunctuation($title);
        $title = preg_replace('#[^=\x20-\x3B\x3F-\x7E\xA0\x{400}-\x{45F}]+#u', ' ', $title);
        $title = preg_replace('# {2,}#', ' ', $title);

        return trim($title);
    }
904887
public function handleTitle($title)
    {
        if (is_null($request = $this->getRequest()) || empty($this->titles)) {
            return $title;
        }

        if (in_array($action = $request->get('action'), array_keys($this->titles))) {
            return $this->titles[$action];
        }

        return $title;
    }
498112
public function title(string $title)
    {
        $name = config('app.name');

        if (empty($this->subject) && ! is_null($name)) {
            $this->subject(sprintf('[%s] %s', $name, $title));
        }

        $this->title = $title;

        return $this;
    }
1077490
public function GenerateTitle($pageTitle = 'Title Error')
    {
        // if there is a site name
        if ($this->owner->Title) {

            // title parts, begin with name/title
            $titles = array($this->owner->Title);

            // tagline
            if ($this->owner->Tagline) {
                array_push($titles, $this->owner->FetchTaglineSeparator());
                array_push($titles, $this->owner->Tagline);
            }

            // page title
            if ($this->owner->TitleOrder == 'first') {
                // add to the beginning
                array_unshift($titles, $this->owner->FetchTitleSeparator());
                array_unshift($titles, $pageTitle);
            } else {
                // add to the end
                array_push($titles, $this->owner->FetchTitleSeparator());
                array_push($titles, $pageTitle);
            }

            // implode to create title
            $title = implode(' ', $titles);

            // removes whitespace before punctuation marks: `,.;:!?`
            // @todo isn't this a little bit random ?
            $title = preg_replace('/\s*[,.;:!?]/', '', $title);

            // return
            return $title;

        } else {
            // just return the page title if there is no site name
            return $pageTitle;
        }
    }
300227
public static function getByTitle($title): Sources
    {
        $sourceData = self::findFirstByTitle($title);

        if (!$sourceData) {
            throw new \Exception(_('Importing site is not currently supported.'));
        }

        return $sourceData;
    }
1164033
public static function titleContains($title)
    {
        return new static(
            function (WebDriver $driver) use ($title) {
                return mb_strpos($driver->getTitle(), $title) !== false;
            }
        );
    }
1218956
public function setTitle( $title ) {
		if ( $this->title !== $title ) {
			$this->title = $title;
			$this->updateTitle();
		}

		return $this;
	}
478830
public function add_new_item($title='') {
        $nitem = new cc_item();
        $nitem->title = $title;
        $this->add_item($nitem);
        return $nitem;
    }
1118897
public Collection<Dashboard> list(String title)
    {
        return list(filters().title(title).build());
    }
1205871
protected function renderTitle($title)
    {
        $obj = $this->obj();
        if ($obj->view()) {
            return $obj->render((string)$title, $obj);
        } else {
            return (string)$title;
        }
    }