Programming Language PHP
Namespace YouTube\Utils
Class Utils
Method/Function arrayGet
Total Examples 9
9 code examples of PHP YouTube\Utils\Utils::arrayGet extracted from open source projects
protected function query($key)
{
return Utils::arrayGet($this->getJson(), $key);
}
protected function query($key)
{
return Utils::arrayGet($this->data, $key);
}
public function getViewCount()
{
return Utils::arrayGet($this->videoDetails, 'viewCount');
}
public function getShortDescription()
{
return Utils::arrayGet($this->videoDetails, 'shortDescription');
}
public function getKeywords()
{
return Utils::arrayGet($this->videoDetails, 'keywords');
}
public function getTitle()
{
return Utils::arrayGet($this->videoDetails, 'title');
}
public function getId()
{
return Utils::arrayGet($this->videoDetails, 'videoId');
}
protected function query($key)
{
return Utils::arrayGet($this->ytInitialPlayerResponse, $key);
}
public function getUserAgent()
{
return Utils::arrayGet($this->headers, 'User-Agent');
}