/** * Constructor * @param object $dilps as reference */ function collectionLocal(&$dilps) { /** * for use of $db and $db_prefix in loadImgData */ parent::collection($dilps); $sql = 'SELECT * FROM ' . $dilps->db_prefix . 'collection where host = "local" and active = 1'; $result = $dilps->db->Execute($sql); while (!$result->EOF) { $this->addCollId($result->fields['collectionid']); $result->MoveNext(); } }