Source

VersionControl_Hg / src / Documentation / API / Docbook / versioncontrol / hg / executable / versioncontrol-hg-executable / getinstance.xml

The default branch has multiple heads

Full commit
<refentry id="package.versioncontrol.hg.executable.versioncontrol-hg-executable.getinstance">
 <refnamediv>
  <refname>
   <function>VersionControl_Hg_Executable::getInstance</function>
  </refname>
  <refpurpose>The singleton method</refpurpose>
 </refnamediv>
 <refsynopsisdiv>
  <funcsynopsis>
   <funcsynopsisinfo>require_once &apos;/Hg/Executable.php&apos;;</funcsynopsisinfo>
   <funcprototype>
    <funcdef>
     <replaceable>
      <link linkend="package.versioncontrol.hg.executable.versioncontrol-hg-executable-summary">
       <classname>VersionControl_Hg_Executable</classname>
      </link>
     </replaceable>
     <function>VersionControl_Hg_Executable::getInstance</function>
    </funcdef>
    <paramdef>
     object
     <parameter>
      <optional>$hg = &null;</optional>
     </parameter>
    </paramdef>
    <paramdef>
     string
     <parameter>
      <optional>$path = &null;</optional>
     </parameter>
    </paramdef>
   </funcprototype>
  </funcsynopsis>
 </refsynopsisdiv>
 <refsect1 id="package.versioncontrol.hg.executable.versioncontrol-hg-executable.getinstance.desc">
  &title.desc;
  &notdocumented;
</refsect1>
 <refsect1 id="package.versioncontrol.hg.executable.versioncontrol-hg-executable.getinstance.param">
  &title.param;
  <para>
   <variablelist>
    <varlistentry>
     <term>
      &type.object;
      <parameter>$hg</parameter>
     </term>
     <listitem>
      <para>is an instance of VersionControl_Hg</para>
     </listitem>
    </varlistentry>
   </variablelist>
   <variablelist>
    <varlistentry>
     <term>
      &type.string;
      <parameter>$path</parameter>
     </term>
     <listitem>
      <para>is the path to the executable to use</para>
     </listitem>
    </varlistentry>
   </variablelist>
  </para>
 </refsect1>
 <refsect1 id="package.versioncontrol.hg.executable.versioncontrol-hg-executable.getinstance.throws">
  &title.throws;
  <para>
   <emphasis>throws</emphasis>
   no exceptions thrown
  </para>
 </refsect1>
 <refsect1 id="package.versioncontrol.hg.executable.versioncontrol-hg-executable.getinstance.note">
  &title.note;
  &note.notstatic;
</refsect1>
</refentry>