class intexLink extends wescoLink
{
+ public function ignore()
+ {
+ if (!static::_getURLOfType('intex', $this->to, false)) {
+ return true;
+ }
+ return parent::ignore();
+ }
+
public static function _getURL($to)
{
return static::_getURLOfType('intex', $to);
return static::_getURL($this->to);
}
- protected static function _getURLOfType($type, $ref)
+ protected static function _getURLOfType($type, $ref, $default = null)
{
global $core;
$e = explode(':', $ref, 2);
if ($r->count()) {
return $r->url;
}
- return 'https://workshop.fluidbook.com/services/wsref?ref=' . urlencode($type . '|' . $ref);
+ if (null === $default) {
+ return 'https://workshop.fluidbook.com/services/wsref?ref=' . urlencode($type . '|' . $ref);
+ }
+ return $default;
}