sitemanagementpage.class.php (fogproject-1.5.5) | : | sitemanagementpage.class.php (fogproject-1.5.6) | ||
---|---|---|---|---|
skipping to change at line 114 | skipping to change at line 114 | |||
* | * | |||
* @param object $Site the object to use | * @param object $Site the object to use | |||
* | * | |||
* @return void | * @return void | |||
*/ | */ | |||
self::$returnData = function (&$Site) { | self::$returnData = function (&$Site) { | |||
$this->data[] = array( | $this->data[] = array( | |||
'id' => $Site->id, | 'id' => $Site->id, | |||
'name' => $Site->name, | 'name' => $Site->name, | |||
'description' => $Site->description, | 'description' => $Site->description, | |||
'hosts' => $Site->hostcount | // 'hosts' => $Site->getHostCount() | |||
'hosts' => self::getClass('SiteHostAssociationManager') | ||||
->count( | ||||
['siteID' => $Site->id] | ||||
) | ||||
); | ); | |||
unset($Site); | unset($Site); | |||
}; | }; | |||
} | } | |||
/** | /** | |||
* Creates new item. | * Creates new item. | |||
* | * | |||
* @return void | * @return void | |||
*/ | */ | |||
public function add() | public function add() | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 5 lines changed or added |