Пример #1
0
    /**

     * Create Report Tables Vars from an array of data

     *

     * @param array $aReportTablesVars

     * @return void

     */

    public function createReportTablesVars ($aReportTablesVars)

    {

        foreach ($aReportTablesVars as $sKey => $aRow) {

            $oRep = new ReportVar();

            if ($oRep->reportVarExists( $aRow['REP_VAR_UID'] )) {

                $oRep->remove( $aRow['REP_VAR_UID'] );

            }

            $oRep->create( $aRow );

        }

    } #@!neyek