Ferreteria/v2/class/fcToggleLink

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< Ferreteria‎ | v2‎ | class
Jump to: navigation, search
class fcToggleLink extends fcDynamicLink {
    /*----
      OVERRIDE - removes self from the URL when selected, so that clicking again un-toggles state
    */
    protected function GetLinkArray_figured() {
	$isSel = $this->GetIsSelected();
	if ($isSel) {
	    $arPath = array();
	} else {
	    $arPath = $this->GetLinkArray_self();
	}
	return $arPath;
    }
}