getInstance() public static method

Returns the instance of CFile for the specified file.
public static getInstance ( string $filepath, string $class_name = __CLASS__ ) : object
$filepath string Path to file specified by user.
$class_name string Class name to spawn object for.
return object CFile instance
示例#1
0
 public static function getInstance($filepath, $class_name = __CLASS__)
 {
     return parent::getInstance($filepath, __CLASS__);
 }