Subversion Repositories PHPX

Compare Revisions

Last modification

Ignore whitespace Rev 20 → Rev 21

/trunk/features.class.php
183,6 → 183,21
 
/**
* A language feature.
*
* @property-read Array[String] $anchors
* Fragment identifiers to be defined for quickly accessing
* the feature description.
* @property-read string $title
* Value of the explanatory <code>title</code> attribute for the feature.
* @property-read string $content
* Name or example code of the feature
* @property-read string $descr
* Description of the feature. Displayed directly if code is missing,
* otherwise used as `title' attribute value.
* @property-read Array $versions
* Versions that support this feature
* @property-read List $list
* Reference to the FeatureList that this feature belongs to
*/
class Feature
{
254,6 → 269,17
}
}
}
 
/*
* Protected properties may be read, but not written
*/
public function __get($property)
{
if (property_exists(get_class($this), $property))
{
return $this->$property;
}
}
/**
* Determines whether one version is greater than another.