array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'compersisthelper.loadfromfile.php', 1 => 'COMPersistHelper::LoadFromFile', ), 'up' => array ( 0 => 'class.compersisthelper.php', 1 => 'COMPersistHelper', ), 'prev' => array ( 0 => 'compersisthelper.initnew.php', 1 => 'COMPersistHelper::InitNew', ), 'next' => array ( 0 => 'compersisthelper.loadfromstream.php', 1 => 'COMPersistHelper::LoadFromStream', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/com/compersisthelper/loadfromfile.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5, PHP 7, PHP 8)
COMPersistHelper::LoadFromFile — Load object from file
Opens the specified file and initializes an object from the file contents.
filename
flags
flags
is 0
,
the implementation is supposed to open the file using whatever default
permissions are used when a user opens the file.
A com_exception is thrown if the associated object does not implement the COM interface IPersistFile, or when calling the IPersistFile::Load() method failed.