【发布时间】:2013-08-17 05:08:06
【问题描述】:
在一个脚本中,我使用var_dump() 输出对象:
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$this->extKey.'/'.$this->scriptRelPath] as $classRef) {
$hookObj = t3lib_div::getUserObj($classRef);
var_dump($hookObj);
结果是:
object(tx_job_dagoupost)#73 (3) { ["extKey"]=> string(3) "job" ["prefixId"]=> string(10) "tx_job_pi1" ["scriptRelPath"]=> string(32) "hooks/class.tx_job_dagoupost.php" }
object(tx_christianvolunteer_dagoupost)#79 (2) { ["extKey"]=> string(19) "christian_volunteer" ["scriptRelPath"]=> string(47) "hooks/class.tx_christianvolunteer_dagoupost.php" }
object(tx_watermark_dagoupost)#73 (2) { ["extKey"]=> string(9) "watermark" ["scriptRelPath"]=> string(38) "hooks/class.tx_watermark_dagoupost.php" }
问题:
#73和#79是什么意思?object(tx_job_dagoupost)#73和object(tx_watermark_dagoupost)#73是不同的对象,但它们的 id 相同#73,为什么?
【问题讨论】:
-
here 看看这个
标签: php