Skip to content
Snippets Groups Projects
Select Git revision
  • 1d79f10c8ef3ecaab1de4e957387e955fb4fa10b
  • 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

README.md

Blame
  • AnomaliesFeatureStyle.class.inc 2.72 KiB
    <?php
    
    require_once 'AnomaliesFeatureStyles.class.inc';
    require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc';
    
    /**
     * \file AnomaliesFeatureStyle.class.inc
     * \class AnomaliesFeatureStyle
     *
     * \author Ludivine Premont <ludivine.premont@veremes.com>.
     *
     *   \brief This file contains the AnomaliesFeatureStyle php class
     *
     * This class defines operation for one AnomaliesFeatureStyle
     *
     */
    class AnomaliesFeatureStyle extends Vitis {
    
      public $oError;
    
      /**
       * construct
       * @param type $aPath url of the request
       * @param type $aValues parameters of the request
       * @param type $properties properties
       * @param type $bShortcut false to reinit variables
       * @param type $oConnection connection object
       */
      function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) {
        parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection);
        $this->aSelectedFields = Array(
          'anomalies_feature_style_id',
          'theme_name',
          'status_name',
          'feature_style_id',
          'draw_color',
          'draw_outline_color',
          'draw_size',
          'draw_dash',
          'draw_symbol',
          'draw_rotation',
          'image',
          'text_font',
          'text_color',
          'text_outline_color',
          'text_size',
          'text_outline_size',
          'text_offset_x',
          'text_offset_y',
          'text_rotation',
          'text_text'
        );
      }
    
      /**
       * @SWG\Get(path="/anomaliesfeaturestyles/{anomalies_feature_style_id}",
       *   tags={"AnomaliesFeatureStyles"},
       *   summary="Get AnomaliesFeatureStyle",
       *   description="Request to get AnomaliesFeatureStyle 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="anomalies_feature_style_id",