Ignore:
Timestamp:
Jul 12, 2011, 12:54:04 PM (14 years ago)
Author:
cla
Message:

rdfint

  • added unittest rdfa_set and methods stubs & documentation for rdfa::Data::setValue and rdfa::Projection::set
File:
1 edited

Legend:

Unmodified
Added
Removed
  • php/trunk/classes/rdfa_Projection.php

    r17 r21  
    150150    return $this->rdfaData->getValues( $this->subject, $property);
    151151  } // public function getAll
     152 
     153  // --------------------------------------------------------
     154
     155  /**
     156   * Sets a property value.
     157   *
     158   * \param property  property to be added
     159   * \param value     value to be set for the property
     160   * \param type      the type of the value, either 'uri', 'literal' or 'bnode'
     161   *                  (case-insensitive). Specifying the first character is sufficient.
     162   *                  If not specified, strings starting with 'http://' are taken as a URI,
     163   *                  otherwise as a literal
     164   * \retval object projection
     165   * \retval false invalid value type specified
     166   *
     167   * \see rdfa::Data::setValue
     168   *
     169   * <strong>NOTE:
     170   * - This method is a library specific extension to the RDFa API
     171   * - The parameter type is a library specific extension to the RDF API
     172   * </strong>
     173   */
     174
     175  public function set( $property, $value, $type = NULL) {
     176
     177    // insert code here
     178  }
    152179
    153180} // class Projection
Note: See TracChangeset for help on using the changeset viewer.