> Unfortunately, in the inherited DeployTask::execute(), "self::$STEPS"
> does not refer to UpdateTask::$STEPS, it refers to DeployTask::$STEPS
Use parent::$STEPS and call it done?
Yes, I know, if you add another layer of class in between, then it's not
parent:: anymore, but it seems a bit
Jack Bates wrote:
this does beg the question why don't you know the classname at runtime..
seems to be a slight design flaw and may make sense for you to post the
full problem (you must have chosen to implement this for a reason..)
The full problem is: I started off with a "DeployTask" for dep
> this does beg the question why don't you know the classname at runtime..
> seems to be a slight design flaw and may make sense for you to post the
> full problem (you must have chosen to implement this for a reason..)
The full problem is: I started off with a "DeployTask" for deploying a
new i
Jack Bates wrote:
How do I access a static variable when I do not know the name of the
class until runtime?
I have the following example PHP:
ket% cat test.php
class Test
{
public static
$STEPS = array(
'foo',
'bar');
}
$className = 'Test';
var_dump($className::$STEPS);
k
Jack Bates wrote:
How do I access a static variable when I do not know the name of the
class until runtime?
I have the following example PHP:
ket% cat test.php
class Test
{
public static
$STEPS = array(
'foo',
'bar');
}
$className = 'Test';
var_dump($className::$STEPS);
k
5 matches
Mail list logo