i'm trying to write my own plugin and new to php to simplify i want to grab a string from the tempalte then do something with it How do i call getMyString() in another function?
EDIT:
class test
{
public $return_data = "";
public function __construct()
{
$this->EE =& get_instance();
$this->return_data = $this->getMyString();
}
public function getMyString() {
$tagdata = $this->EE->TMPL->tagdata;
return "<p>TEST : " . $tagdata . "</p>";
}
public function newFuction() {
$this->return_data = self::getMyString();
}
// usage stuff here
}
Thanks!