Created
August 27, 2014 01:13
-
-
Save mhwinkler/b4bb766ff9e7bbd2e758 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Line 92 | |
| public function bindXml($xml, $model) { | |
| - //print_r($xml."\n ".get_class($model)); | |
| + //print_r($xml."<BR>".get_class($model)); | |
| $this->dom = new \DOMDocument(); | |
| $this->dom->loadXML($xml); | |
| // Line 159 | |
| - if (!class_exists($className)) { | |
| + if (!class_exists($className, false)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Line 64 | |
| + // Fix for Yii class_exist error | |
| + $this->logger = new NullLogger(); | |
| + /* | |
| if (class_exists('\Zend_Registry')) { // this does not work due to PHP bug @see http://bugs.php.net/bug.php?id=46813 | |
| $this->logger = \Zend_Registry::get('logger'); | |
| } else { | |
| $this->logger = new NullLogger(); | |
| } | |
| + */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Line 24 | |
| - private function getXmlFromObj($phpObj) | |
| + private static function getXmlFromObj($phpObj) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment