Visibility Issue
Permalink
I created a new instance of the FileAttributeKey with the line:
Then, within a loop of the array of objects I assigned individual objects (based on a strncmp of the handle) to other variables, with:
Everything went fine when the new object instances ($atOne, $atTwo, etc) were passed to another function. The var_dump() shows what you'd expect. The problem I have now is whereas the $at is publicly accessible, the $atOne, $atTwo are not. Why would that be? I have tried the line:
Still no good.
I could really use a good suggestion, solution. Thanks.
Rick
EDIT: PLEASE IGNORE :: The issue was program flow, not visibility. Sorry.
$at = new FileAttributeKey;
$atOne = $at; $atTwo = $at;
Everything went fine when the new object instances ($atOne, $atTwo, etc) were passed to another function. The var_dump() shows what you'd expect. The problem I have now is whereas the $at is publicly accessible, the $atOne, $atTwo are not. Why would that be? I have tried the line:
global $atOne;
Still no good.
I could really use a good suggestion, solution. Thanks.
Rick
EDIT: PLEASE IGNORE :: The issue was program flow, not visibility. Sorry.