Changeset 23


Ignore:
Timestamp:
Jul 12, 2011, 6:39:33 PM (14 years ago)
Author:
cla
Message:

rdfint

  • prefix non-standard methods rdfa::Data::_setValue with an underscore
Location:
php/trunk
Files:
2 edited

Legend:

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

    r22 r23  
    773773   * \see rdfa::Projection::set
    774774   *
    775    * <strong>NOTE:
    776    * - This method is a library specific extension to the RDFa API
    777    * - The parameter type is a library specific extension to the RDF API
    778    * </strong>
    779    */
    780 
    781   public function setValue( $subject, $property, $value, $type = NULL) {
     775   * <strong>NOTE: This method is a library specific extension to the RDF API and RDFa API.</strong>
     776   */
     777
     778  public function _setValue( $subject, $property, $value, $type = NULL) {
    782779
    783780    $predicate = $property;
     
    785782
    786783    // insert code here
    787   }
     784
     785  } // public function _setValue
    788786
    789787  /**@} */ /***************** DOXYGEN GROUP ENDS - Basic APIs */
  • php/trunk/unittest/rdfa_set/unittest.php

    r21 r23  
    6464
    6565    // use basic API to write new property value
    66     $result = $this->rdfaData->setValue( $uriPerson, 'foaf:mbox', $uriMailbox, 'URI');
     66    $result = $this->rdfaData->_setValue( $uriPerson, 'foaf:mbox', $uriMailbox, 'URI');
    6767    $this->assertEquals( $result, true);
    6868
Note: See TracChangeset for help on using the changeset viewer.