/** * Get the script text * * @return string */ protected function getScriptText() { $url = $this->buildCompatibleUrl(); $entryName = $this->entry->getName(); $link = Builder::escapeText($entryName . $url . "="); return "\ndeclare Value = TextLib::URLEncode(Entry.Value);\nOpenLink({$link}^Value, CMlScript::LinkType::Goto);\n"; }
public function testName() { $entry = new Entry(); $this->assertNull($entry->getName()); $this->assertSame($entry, $entry->setName("test-name")); $this->assertEquals("test-name", $entry->getName()); }