Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 10626

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Hyperwave API Functions</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="hwapi.constants.html">Predefined Constants</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="hwapi.checkin.html">hw_api::checkin</a></div>
 <div class="up"><a href="book.hwapi.html">Hyperwave API</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="ref.hwapi" class="reference">
  <h1 class="title">Hyperwave API Functions</h1>

  <div class="partintro">
   <div class="section" id="hwapi.apache">
    <h2 class="title">Integration with Apache</h2>
    <p class="para">
     The integration with Apache and possible other servers is already
     described in the <a href="ref.hw.html" class="link">Hyperwave module</a>
     which has been the first extension to connect a Hyperwave Server.
    </p>
   </div>

   
   <div class="section" id="hwapi.classes">
    <h2 class="title">Classes</h2>
    <p class="para">
     The API provided by the HW_API extension is fully object oriented.
     It is very similar to the C++ interface of the Hyperwave SDK.
     It consist of the following classes.
     <ul class="itemizedlist">
      <li class="listitem">
       <span class="simpara">
        <strong class="classname">HW_API</strong>
          </span>
         </li>
      <li class="listitem">
       <span class="simpara">
        <strong class="classname">HW_API_Object</strong>
          </span>
         </li>
      <li class="listitem">
       <span class="simpara">
        <strong class="classname">HW_API_Attribute</strong>
          </span>
         </li>
      <li class="listitem">
       <span class="simpara">
        <strong class="classname">HW_API_Error</strong>
          </span>
         </li>
      <li class="listitem">
       <span class="simpara">
        <strong class="classname">HW_API_Content</strong>
          </span>
         </li>
      <li class="listitem">
       <span class="simpara">
        <strong class="classname">HW_API_Reason</strong>
          </span>
         </li>
     </ul>
     Some basic classes like <strong class="classname">HW_API_String</strong>,
     <strong class="classname">HW_API_String_Array</strong>, etc., which exist in the
     Hyperwave SDK have not been implemented since PHP has powerful
     replacements for them.
    </p>
    <p class="para">
     Each class has certain method, whose names are identical to its
     counterparts in the Hyperwave SDK. Passing arguments to this function
     differs from all the other PHP extensions but is close to the C++ API of
     the HW SDK. Instead of passing several parameters they are all put into
     an associated array and passed as one parameter. The names of the keys
     are identical to those documented in the HW SDK. The common parameters
     are listed below. If other parameters are required they will be
     documented if needed.
     <ul class="itemizedlist">
      <li class="listitem">
       <span class="simpara">
        <strong class="classname">objectIdentifier</strong> The name or id of an object,
        e.g. &quot;rootcollection&quot;, &quot;0x873A8768 0x00000002&quot;.
          </span>
         </li>
      <li class="listitem">
       <span class="simpara">
        <strong class="classname">parentIdentifier</strong> The name or id of an object
        which is considered to be a parent.
          </span>
         </li>
      <li class="listitem">
       <span class="simpara">
        <strong class="classname">object</strong> An instance of class HW_API_Object.
          </span>
         </li>
      <li class="listitem">
       <span class="simpara">
        <strong class="classname">parameters</strong> An instance of class HW_API_Object.
          </span>
         </li>
      <li class="listitem">
       <span class="simpara">
        <strong class="classname">version</strong> The version of an object.
          </span>
         </li>
      <li class="listitem">
       <span class="simpara">
        <strong class="classname">mode</strong> An integer value determine the way an
        operation is executed.
          </span>
         </li>
      <li class="listitem">
       <span class="simpara">
        <strong class="classname">attributeSelector</strong> Any array of strings, each
        containing a name of an attribute. This is used if you retrieve the
        object record and want to include certain attributes.
          </span>
         </li>
      <li class="listitem">
       <span class="simpara">
        <strong class="classname">objectQuery</strong> A query to select certain object
        out of a list of objects. This is used to reduce the number of objects
        which was delivered by a function like
         <span class="function"><a href="hwapi.children.html" class="function">hw_api::children()</a></span> or  <span class="function"><a href="hwapi.find.html" class="function">hw_api::find()</a></span>.
          </span>
         </li>
     </ul>
    </p>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Methods returning <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span> can return <strong><code>TRUE</code></strong>, <strong><code>FALSE</code></strong> or
      <strong class="classname">HW_API_Error</strong> object.
     </p>
    </p></blockquote>
   </div>
  </div>







































































































































































































































































































































 <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="hwapi.checkin.html">hw_api::checkin</a> — Checks in an object</li><li><a href="hwapi.checkout.html">hw_api::checkout</a> — Checks out an object</li><li><a href="hwapi.children.html">hw_api::children</a> — Returns children of an object</li><li><a href="hwapi.content.html">hw_api::content</a> — Returns content of an object</li><li><a href="hwapi.copy.html">hw_api::copy</a> — Copies physically</li><li><a href="hwapi.dbstat.html">hw_api::dbstat</a> — Returns statistics about database server</li><li><a href="hwapi.dcstat.html">hw_api::dcstat</a> — Returns statistics about document cache server</li><li><a href="hwapi.dstanchors.html">hw_api::dstanchors</a> — Returns a list of all destination anchors</li><li><a href="hwapi.dstofsrcanchor.html">hw_api::dstofsrcanchor</a> — Returns destination of a source anchor</li><li><a href="hwapi.find.html">hw_api::find</a> — Search for objects</li><li><a href="hwapi.ftstat.html">hw_api::ftstat</a> — Returns statistics about fulltext server</li><li><a href="hwapi.hwstat.html">hw_api::hwstat</a> — Returns statistics about Hyperwave server</li><li><a href="hwapi.identify.html">hw_api::identify</a> — Log into Hyperwave Server</li><li><a href="hwapi.info.html">hw_api::info</a> — Returns information about server configuration</li><li><a href="hwapi.insert.html">hw_api::insert</a> — Inserts a new object</li><li><a href="hwapi.insertanchor.html">hw_api::insertanchor</a> — Inserts a new object of type anchor</li><li><a href="hwapi.insertcollection.html">hw_api::insertcollection</a> — Inserts a new object of type collection</li><li><a href="hwapi.insertdocument.html">hw_api::insertdocument</a> — Inserts a new object of type document</li><li><a href="hwapi.link.html">hw_api::link</a> — Creates a link to an object</li><li><a href="hwapi.lock.html">hw_api::lock</a> — Locks an object</li><li><a href="hwapi.move.html">hw_api::move</a> — Moves object between collections</li><li><a href="hwapi.object.html">hw_api::object</a> — Retrieve attribute information</li><li><a href="hwapi.objectbyanchor.html">hw_api::objectbyanchor</a> — Returns the object an anchor belongs to</li><li><a href="hwapi.parents.html">hw_api::parents</a> — Returns parents of an object</li><li><a href="hwapi.remove.html">hw_api::remove</a> — Delete an object</li><li><a href="hwapi.replace.html">hw_api::replace</a> — Replaces an object</li><li><a href="hwapi.setcommittedversion.html">hw_api::setcommittedversion</a> — Commits version other than last version</li><li><a href="hwapi.srcanchors.html">hw_api::srcanchors</a> — Returns a list of all source anchors</li><li><a href="hwapi.srcsofdst.html">hw_api::srcsofdst</a> — Returns source of a destination object</li><li><a href="hwapi.unlock.html">hw_api::unlock</a> — Unlocks a locked object</li><li><a href="hwapi.user.html">hw_api::user</a> — Returns the own user object</li><li><a href="hwapi.userlist.html">hw_api::userlist</a> — Returns a list of all logged in users</li><li><a href="hwapi.attribute-key.html">hw_api_attribute::key</a> — Returns key of the attribute</li><li><a href="hwapi.attribute-langdepvalue.html">hw_api_attribute::langdepvalue</a> — Returns value for a given language</li><li><a href="hwapi.attribute-value.html">hw_api_attribute::value</a> — Returns value of the attribute</li><li><a href="hwapi.attribute-values.html">hw_api_attribute::values</a> — Returns all values of the attribute</li><li><a href="hwapi.content-mimetype.html">hw_api_content::mimetype</a> — Returns mimetype</li><li><a href="hwapi.content-read.html">hw_api_content::read</a> — Read content</li><li><a href="hwapi.error-count.html">hw_api_error::count</a> — Returns number of reasons</li><li><a href="hwapi.error-reason.html">hw_api_error::reason</a> — Returns reason of error</li><li><a href="hwapi.object-assign.html">hw_api_object::assign</a> — Clones object</li><li><a href="hwapi.object-attreditable.html">hw_api_object::attreditable</a> — Checks whether an attribute is editable</li><li><a href="hwapi.object-count.html">hw_api_object::count</a> — Returns number of attributes</li><li><a href="hwapi.object-insert.html">hw_api_object::insert</a> — Inserts new attribute</li><li><a href="hwapi.object-remove.html">hw_api_object::remove</a> — Removes attribute</li><li><a href="hwapi.object-title.html">hw_api_object::title</a> — Returns the title attribute</li><li><a href="hwapi.object-value.html">hw_api_object::value</a> — Returns value of attribute</li><li><a href="hwapi.reason-description.html">hw_api_reason::description</a> — Returns description of reason</li><li><a href="hwapi.reason-type.html">hw_api_reason::type</a> — Returns type of reason</li><li><a href="function.hwapi-attribute-new.html">hwapi_attribute_new</a> — Creates instance of class hw_api_attribute</li><li><a href="function.hwapi-content-new.html">hwapi_content_new</a> — Create new instance of class hw_api_content</li><li><a href="function.hwapi-hgcsp.html">hwapi_hgcsp</a> — Returns object of class hw_api</li><li><a href="function.hwapi-object-new.html">hwapi_object_new</a> — Creates a new instance of class hwapi_object_new</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="hwapi.constants.html">Predefined Constants</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="hwapi.checkin.html">hw_api::checkin</a></div>
 <div class="up"><a href="book.hwapi.html">Hyperwave API</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>