Skip to content
Snippets Groups Projects
Select Git revision
  • 0b2a4825970a968dd146213bd9e280172d43d065
  • master default
  • next_version
  • laurent-change.log
  • Documentation_homogeneisation
  • HEAD
  • 2021.02.02
  • 2021.02.01
  • 2021.02.00
  • 2021.01.00
  • 2020.02.02
  • 2020.02.01
  • 2020.02.00
  • 2020.01.05
  • 2020.01.04
  • 2020.01.03
  • 2020.01.02
  • 2020.01.01
  • 2020.01.00
  • 2019.03.00
  • 2019.02.07
  • 2019.02.06
  • 2019.02.05
  • 2019.02.04
  • 2019.02.03
  • 2019.02.02
26 results

folderToDelete.txt

Blame
  • Filieres_agree.class.inc 2.81 KiB
    <?php
    
    require_once __DIR__ . '/Anc.class.inc';
    require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc';
    
    /**
     * \file Filieres_agree.class.inc
     * \class Filieres_agree
     *
     * \author WAB <support.wab@veremes.com>.
     *
     * 	\brief This file contains the Filieres_agree php class
     *
     * This class defines operation for one Filieres_agree
     *
     */
    class Filieres_agree extends Anc {
    
        public $oError;
    
        /**
         * construct
         * @param type $aPath url of the request
         * @param type $aValues parameters of the request
         * @param type $properties properties
         * @param type $oConnection connection object
         */
        function __construct($aPath, $aValues, $properties) {
            $this->aValues = $aValues;
            $this->aPath = $aPath;
            $this->aProperties = $properties;
            $this->oConnection = new Connection($this->aValues, $this->aProperties);
            $this->oFilesManager = new Files_manager($this->aProperties);
        }
    
        /**
         * @SWG\Get(path="/filieres_agrees/{id_filieres_agree}",
         *   tags={"Filieres_agrees"},
         *   summary="Get Filieres_agree",
         *   description="Request to get Filieres_agree by id",
         *   operationId="GET",
         *   produces={"application/xml", "application/json"},
         *   @SWG\Parameter(
         *     name="token",
         *     in="query",
         *     description="user token",
         *     required=true,
         *     type="string"
         *   ),
         * @SWG\Parameter(
         *     name="id_filieres_agree",
         *     in="path",
         *     description="id_filieres_agree",
         *     required=true,
         *     type="integer",
         *   format="int32"
         *   ),
         * @SWG\Parameter(
         *     name="attributs",
         *     in="query",
         *     description="list of attributs",
         *     required=false,
         *     type="string"
         *   ),
         *   @SWG\Response(
         *         response=200,
         *         description="Filieres_agree Response",
         *         @SWG\Schema(ref="#/definitions/filieres_agrees")
         *     )
         *  )
         */
    
        /**
         * get informations about mode
         */
        function GET() {
            $this->aFields = $this->getFields($this->aProperties['schema_anc'], 'v_filieres_agrees', 'id_fag', 'anc_saisie_anc_filieres_agree', $this->aProperties['anc']['files_container']);
        }
    
        /**
         * delete a Point_situation
         */
        function DELETE() {
            $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'v_filieres_agrees', 'id_fag', $this->aValues["my_vitis_id"], 'integer');
            if ($this->oConnection->oBd->enErreur()) {
                $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage());
            } else {
                $this->aFields["id_fag"] = $this->aValues["my_vitis_id"];
            }
        }
    
    }
    
    ?>