@param bool $bForceLocal Try to return the original name of the movie.

@return string The title of the movie or $sNotFound.
974233
public function getTitle($bForceLocal = false)
        {
            if (true === $this->isReady) {
                if (true === $bForceLocal) {
                    $sMatch = IMDBHelper::matchRegex($this->sSource, self::IMDB_TITLE_ORIG, 1);

                    if (false !== $sMatch && "" !== $sMatch) {
                        return IMDBHelper::cleanString($sMatch);
                    }
                }

                $sMatch = IMDBHelper::matchRegex($this->sSource, self::IMDB_TITLE, 1);
                $sMatch = preg_replace('~\(\d{4}\)$~Ui', '', $sMatch);

                if (false !== $sMatch && "" !== $sMatch) {
                    return IMDBHelper::cleanString($sMatch);
                }
            }

            return $this->sNotFound;
        }
988123
public function getName($ucfirst = false)
    {
        $value = $this->camelCase($this->name);
        if (true === $ucfirst) {
            return ucfirst($value);
        } else {
            return $value;
        }
    }
829476
function getScriptName($multicall = false)
    {
        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array(), array($this, 'stripBom'));
        }
        return $this->stripBom($this->execute(ucfirst(__FUNCTION__)));
    }
950544
private static function encodeBoolean($bool)
    {
        if ($bool)
        {
            return self::encodeFirstByte(MajorType::SIMPLE_AND_FLOAT, AdditionalType::SIMPLE_TRUE);
        }
        else
        {
            return self::encodeFirstByte(MajorType::SIMPLE_AND_FLOAT, AdditionalType::SIMPLE_FALSE);
        }
    }
323614
public function getCellFeed($location)
    {
        if ($location instanceof Zend_Gdata_Spreadsheets_CellQuery) {
            $uri = $location->getQueryUrl();
        } else if ($location instanceof Zend_Gdata_Spreadsheets_WorksheetEntry) {
            $uri = $location->getLink(self::CELL_FEED_LINK_URI)->href;
        } else {
            $uri = $location;
        }
        return parent::getFeed($uri, 'Zend_Gdata_Spreadsheets_CellFeed');
    }
1153278
public function getImageUrl($sFile = null, $bSsl = null)
    {
        if ($sFile) {
            $sValue = $this->getConfig()->getImageUrl($this->isAdmin(), $bSsl, null, $sFile);
        } elseif (($sValue = $this->getViewConfigParam('imagedir')) === null) {
            $sValue = $this->getConfig()->getImageUrl($this->isAdmin(), $bSsl);
            $this->setViewConfigParam('imagedir', $sValue);
        }

        return $sValue;
    }
330232
public function getNodeAttributeBool($xPath,$atrName,$failReturn = false){
        $val = $this->getNodeAttribute($xPath, $atrName);
        // string sets true/false
        if (strtolower($val) === 'false'){
            return false;
        }
        if (strtolower($val) === 'true'){
            return true;
        }
        if ($val === NULL || !is_bool($val)){

            return $failReturn;
        }
        return (bool) $val;
    }
1314078
public static function getCountryName($sDBValue, $aOrderRow)
    {
        $oCountry = TdbDataCountry::GetNewInstance();
        $sCountry = '-';
        if ($oCountry->Load($sDBValue)) {
            $sCountry = $oCountry->fieldName;
        }

        return $sCountry;
    }
169455
public function GetRateURL($bPositiveLink = true, $bUseFullUrl = false)
    {
        if ($bPositiveLink) {
            $bPositiveLink = '1';
        } else {
            $bPositiveLink = '0';
        }
        $aParameter = array('bRate' => $bPositiveLink, TdbShopArticleReview::URL_PARAM_REVIEW_ID => $this->id);
        $sRatePositiveLink = TTools::GetExecuteMethodOnCurrentModuleURL('RateReview', $aParameter, $bUseFullUrl);

        return $sRatePositiveLink;
    }
1055244
private function getLocationAspect( $source, $evaluationResult, $log )
	{
		// Get the location from the source
		if ( is_null( $this->locationRule ) )
		{
			return qname( "xbrli:xbrl", $this->nsMgr->getNamespaces() );
		}
		else
		{
			// TODO
			// This function will throw an exception if there is a problem so there is no return value to check
			$location = Location::fromArray( $this->locationRule );
			$this->checkSAVConflicts( $location->source, ASPECT_LOCATION, $evaluationResult, $log );
		}
	}
82143
public function getCellXfByHashCode($pValue = '')
    {
        foreach ($this->_cellXfCollection as $cellXf) {
            if ($cellXf->getHashCode() == $pValue) {
                return $cellXf;
            }
        }
        return false;
    }
510033
protected function GetMessageForField($sFieldName, $aFieldMessages)
    {
        $sMessage = '';
        if (is_array($aFieldMessages) && isset($aFieldMessages[$sFieldName])) {
            $sMessage = $aFieldMessages[$sFieldName];
        }

        return $sMessage;
    }
1281757
public static function getSearchResultsTotal($url = false)
    {
        $url = parent::getUrl($url);
        $url = sprintf(Config\Services::GOOGLE_APISEARCH_URL, 1, $url);

        $ret = static::_getPage($url);

        $obj = Helper\Json::decode($ret);
        return !isset($obj->responseData->cursor->estimatedResultCount)
               ? parent::noDataDefaultValue()
               : intval($obj->responseData->cursor->estimatedResultCount);
    }
816216
static function base($url = '', $cacheBuster = false) {
        $cacheb = $cacheBuster ? ('?' . (Config::get('app.version', '1.0.0'))) : ''; 
        $servern = $_SERVER['SERVER_NAME']; 
        $serverp = $_SERVER['SERVER_PORT'];
        $server = $serverp == '8080' || $serverp == '80' || $serverp == '443' ? $servern : "$servern:$serverp";

        return (((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ||
                (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' || !empty($_SERVER['HTTP_X_FORWARDED_SSL']) && $_SERVER['HTTP_X_FORWARDED_SSL'] == 'on'))
                    ? 'https://' : 'http://') . str_replace('//', '/', ($server . '/' . $url)) . $cacheb;
    }
210249
public static function getAllEntity($oEntityCall, $bReturnNotNulOnly = false)
	{
		if (!is_object($oEntityCall)) { return array(); }

		$oReflectionClass = new \ReflectionClass(get_class($oEntityCall));
		$oReflectionMethod = $oReflectionClass->getMethods();
		$aFieldsToReturn = array();

		foreach ($oReflectionMethod as $aMethod) {

			if (preg_match('/^get_[a-zA-Z_]+/', $aMethod->getName())) {

				$sMethodsCall = $aMethod->getName();
				$sFieldName = preg_replace('/^get_/', '', $aMethod->getName());

				if ($oEntityCall->$sMethodsCall() !== null || ($oEntityCall->$sMethodsCall() === null
					&& $bReturnNotNulOnly === false)) {

					$aFieldsToReturn[$sFieldName] = $oEntityCall->$sMethodsCall();
				}
			}
		}

		$oReflectionProperties = $oReflectionClass->getProperties();

		foreach ($oEntityCall as $sKey => $aProperty) {

			$aFieldsToReturn[$sKey] = self::getAllEntity($aProperty, $bReturnNotNulOnly);
		}

		return $aFieldsToReturn;
	}
960388
public function getRemoteCachePath($sRemote, $sLocal)
    {
        clearstatcache();
        if (file_exists($sLocal) && filemtime($sLocal) && filemtime($sLocal) > time() - 86400) {
            return $sLocal;
        }
        $hRemote = @fopen($sRemote, "rb");
        $blSuccess = false;
        if (is_resource($hRemote) && $hLocal = @fopen($sLocal, "wb")) {
            stream_copy_to_stream($hRemote, $hLocal);
            fclose($hRemote);
            fclose($hLocal);
            $blSuccess = true;
        } else {
            // try via fsockopen
            $aUrl = @parse_url($sRemote);
            if (!empty($aUrl["host"])) {
                $sPath = $aUrl["path"];
                if (empty($sPath)) {
                    $sPath = "/";
                }
                $sHost = $aUrl["host"];

                $hSocket = @fsockopen($sHost, 80, $iErrorNumber, $iErrStr, 5);
                if ($hSocket) {
                    fputs($hSocket, "GET " . $sPath . " HTTP/1.0\r\nHost: $sHost\r\n\r\n");
                    $headers = stream_get_line($hSocket, 4096, "\r\n\r\n");
                    if (($hLocal = @fopen($sLocal, "wb")) !== false) {
                        rewind($hLocal);
                        // does not copy all the data
                        // stream_copy_to_stream($hSocket, $hLocal);
                        fwrite($hLocal, stream_get_contents($hSocket));
                        fclose($hLocal);
                        fclose($hSocket);
                        $blSuccess = true;
                    }
                }
            }
        }
        if ($blSuccess || file_exists($sLocal)) {
            return $sLocal;
        }

        return false;
    }
1351883
public function getSnippet($fieldName, $returnFirstValueOnly = true) {
        if(!empty($this->snippets[$fieldName]) && count($this->snippets[$fieldName] > 0)) {
            return ($returnFirstValueOnly) ? $this->snippets[$fieldName][0] : $this->snippets[$fieldName];
        }
    }