src/snac/server/database/DBUtil.php
/**
     * Generate a Maintenance Note
     *
     * Given a Constellation object, this method generates a note (for storing in a text field) that
     * contains the maintenance information from the constellation.
     *
     * @param \snac\data\Constellation $cObj A constellation object
     * @return string The JSON-encoded note containing maintenance data
     */
Generate a Maintenance Note
Given a Constellation object, this method generates a note (for storing in a text field) that
contains the maintenance information from the constellation.

@param \snac\data\Constellation $cObj A constellation object
@return string The JSON-encoded note containing maintenance data
Generate a Maintenance Note Given a Constellation object this method generates a note ( for storing in a text field ) that contains the maintenance information from the constellation . @param \ snac \ data \ Constellation $cObj A constellation object @return string The JSON - encoded note containing maintenance data
private function maintenanceNote($cObj)
    {
        $saveArray = array("maintenanceStatus" => $cObj->getMaintenanceStatus() == null ? null : $cObj->getMaintenanceStatus()->toArray(),
                           "maintenanceAgency" => $cObj->getMaintenanceAgency(),
                           "maintenanceEvents" => array());
        foreach ($cObj->getMaintenanceEvents() as $i => $v)
            $saveArray["maintenanceEvents"][$i] = $v->toArray();
        $json = json_encode($saveArray, JSON_PRETTY_PRINT);
        return $json;
    }
private function maintenanceNote ( $ cObj ) { $ saveArray = array ( " maintenanceStatus " => $ cObj -> getMaintenanceStatus ( ) == null ? null : $ cObj -> getMaintenanceStatus ( ) -> toArray ( ) , " maintenanceAgency " => $ cObj -> getMaintenanceAgency ( ) , " maintenanceEvents " => array ( ) ) ; foreach ( $ cObj -> getMaintenanceEvents ( ) as $ i => $ v ) $ saveArray [ " maintenanceEvents " ] [ $ i ] = $ v -> toArray ( ) ; $ json = json_encode ( $ saveArray , JSON_PRETTY_PRINT ) ; return $ json ; }
Generate a Maintenance Note
 Given a Constellation object, this method generates a note (for storing in a text field) that
 contains the maintenance information from the constellation.
Generate a Maintenance Note Given a Constellation object this method generates a note ( for storing in a text field ) that contains the maintenance information from the constellation .