Browse Source

Ermahgerd, lerns ter lerng.

pull/536/head
Adam Vessey 10 years ago
parent
commit
862bde2d64
  1. 12
      includes/tuque_wrapper.inc

12
includes/tuque_wrapper.inc

@ -171,9 +171,9 @@ class IslandoraFedoraObject extends FedoraObject {
// stuck looping with a "plain" property. // stuck looping with a "plain" property.
if ($this->propertyIsMagical($name)) { if ($this->propertyIsMagical($name)) {
// XXX: Due to the structure of the code, we cannot use property_exists() // XXX: Due to the structure of the code, we cannot use property_exists()
// (because many of the properties are declared in the class, and the magic // (because many of the properties are declared in the class, and the
// triggers due them being NULLed), nor can we use isset() (because it is // magic triggers due them being NULLed), nor can we use isset() (because
// implemented as another magic function...). // it is implemented as another magic function...).
$vars = get_object_vars($this); $vars = get_object_vars($this);
while (isset($vars[$name])) { while (isset($vars[$name])) {
$new_value = $this->$name; $new_value = $this->$name;
@ -440,9 +440,9 @@ class IslandoraFedoraDatastream extends FedoraDatastream {
// stuck looping with a "plain" property. // stuck looping with a "plain" property.
if ($this->propertyIsMagical($name)) { if ($this->propertyIsMagical($name)) {
// XXX: Due to the structure of the code, we cannot use property_exists() // XXX: Due to the structure of the code, we cannot use property_exists()
// (because many of the properties are declared in the class, and the magic // (because many of the properties are declared in the class, and the
// triggers due them being NULLed), nor can we use isset() (because it is // magic triggers due them being NULLed), nor can we use isset() (because
// implemented as another magic function...). // it is implemented as another magic function...).
$vars = get_object_vars($this); $vars = get_object_vars($this);
while (isset($vars[$name])) { while (isset($vars[$name])) {
$new_value = $this->$name; $new_value = $this->$name;

Loading…
Cancel
Save