/** * @return string */ public static function getClassSelector(\Psc\HTML\Tag $tag) { $guid = $tag->guid(); $tag->publishGUID(); if (mb_strpos($guid, '[') !== FALSE || mb_strpos($guid, ']') !== FALSE) { return sprintf("jQuery('%s[class*=\"%s\"]')", $tag->getTag(), $guid); } else { return sprintf("jQuery('%s.%s')", $tag->getTag(), $guid); } }
/** * Fügt hinter diesem Element ein anderes Element an */ public function after(Tag $after) { $id = $after->guid(); $this->templateAppend('%' . $id . '%'); $this->templateContent->{$id} =& $after; }