substr( $buffer, $options[0], $options[1] ); } else { $newtext = $GLOBALS['PMA_String']->substr($buffer, $options[0]); } $length = strlen($newtext); $baselength = strlen($buffer); if ($length != $baselength) { if ($options[0] != 0) { $newtext = $options[2] . $newtext; } if (($length + $options[0]) != $baselength) { $newtext .= $options[2]; } } return $newtext; } /** * This method is called when any PluginManager to which the observer * is attached calls PluginManager::notify() * * @param SplSubject $subject The PluginManager notifying the observer * of an update. * * @todo implement * @return void */ public function update (SplSubject $subject) { ; } /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */ /** * Gets the transformation name of the specific plugin * * @return string */ public static function getName() { return "Substring"; } } ?>