Source for file ResAlt.php
Documentation is available at ResAlt.php
// ----------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------
* This interface defines methods for accessing RDF Alternative resources.
* These methods operate on the RDF statements contained in a model.
* @version $Id: fsource_resModel__resModelResAlt.php.html 443 2007-06-01 16:25:38Z cax $
* @author Daniel Westphal <mail at d-westphal dot de>
* Return the default value for this resource
* @return object ResResource/ResLiteral
$statements=
$this->listProperties($this->_getMembershipPropertyWithIndex(1));
if(isset
($statements[0]))
return $statements[0]->getObject();
* Set the default value of this container.
* @param object ResResource/ResLiteral $object
//remember the old default value
//if there wasn't a default value before
if($oldDefaultObject ===
null)
$this->addProperty($this->_getMembershipPropertyWithIndex(1),$object);
$this->removeAll($this->_getMembershipPropertyWithIndex(1));
$this->addProperty($this->_getMembershipPropertyWithIndex(1),$object);
//add the old default value at the end
$this->add($oldDefaultObject);
Documentation generated on Fri, 1 Jun 2007 16:51:21 +0200 by phpDocumentor 1.3.2