Template::fileExists PHP Méthode

fileExists() public méthode

Return TRUE if the file exists.
public fileExists ( ) : boolean
Résultat boolean
    public function fileExists()
    {
        global $Campsite;
        if (!self::IsValidPath(dirname($this->m_data['Name']))) {
            return false;
        }
        if (!is_file($Campsite['TEMPLATE_DIRECTORY'] . "/" . $this->m_data['Name'])) {
            return false;
        }
        return true;
    }