Calling a function in a function from the same class page
Hello, I'm currently trying to edit the code in the class_owned_adoptables files and am trying to call the "getNextLevel" function in another function, but I can't get the function to return a value. Does anyone know a way around this or a way to call the function within a function in the same file? I'm using v1.3.3. Thank you!
The code is something like this in the function that calles the "getNextLevel" function:
public function code{
$nextlevel = $this->getNextLevel();
$document->add(new Comment($nextlevel));
}
No value is returned.
__________________
Last edited by Hwona; 04-24-2015 at 11:59 PM.
|