. */ require_once 'phing/types/selectors/NoneSelector.php'; /** * This selector has one other selectors whose meaning it inverts. It * actually relies on NoneSelector for its implementation of the * isSelected() method, but it adds a check to ensure there is only one * other selector contained within. * * @author Hans Lellelid (Phing) * @author Bruce Atherton (Ant) * @package phing.types.selectors */ class NotSelector extends NoneSelector { public function toString() { $buf = ""; if ($this->hasSelectors()) { $buf .= "{notselect: "; $buf .= parent::toString(); $buf .= "}"; } return $buf; } /** * Makes sure that there is only one entry, sets an error message if * not. */ public function verifySettings() { if ($this->selectorCount() != 1) { $this->setError("One and only one selector is allowed within the " . " tag"); } } }