8 public function __construct($class)
10 $this->class = $class;
14 * Format the tool path
20 public function getLink(File $file)
22 return $file->getLink('tool', $this->stripPrefix($this->class));
26 * Clean namespace from class
30 public function getTitle()
32 return $this->stripPrefix($this->class);
36 * Removes custom namespace prefix
38 * @param string $class Class of object
42 protected function stripPrefix($class)
44 $prefix = '\\phorkie\\Tool_';
45 if (substr($class, 0, strlen($prefix)) === $prefix) {
46 return substr($class, strlen($prefix));