tangra logo
   
[ class tree: tangra_lib ] [ index: tangra_lib ] [ all elements ]
 

Source for file tangra_module_release_file.class.php

Documentation is available at tangra_module_release_file.class.php

  1. <?php
  2.  
  3. // $Id$
  4.  
  5.  
  6. /**
  7.  * Contains class Tangra_Module_Release_File
  8.  *
  9.  * @package  tangra_lib
  10.  * @subpackage  modules_manager
  11.  */
  12.  
  13. /**
  14.  * Tangra_Module_Release_File
  15.  *
  16.  * Represents release file (usually zip)
  17.  *
  18.  * @package  tangra_lib
  19.  * @subpackage  modules_manager
  20.  */
  21.     /**
  22.      * ID
  23.      *
  24.      * @var integer 
  25.      * @internal
  26.      */
  27.     private $id;
  28.     /**
  29.      * Path to release file
  30.      *
  31.      * @var string 
  32.      * @internal
  33.      */
  34.     private $file_path;
  35.     /**
  36.      * Module release ID
  37.      *
  38.      * @var integer 
  39.      * @internal
  40.      */
  41.     private $module_release;
  42.  
  43.  
  44.     /**
  45.      * Sets ID
  46.      *
  47.      * @param integer $id 
  48.      */
  49.     public function set_id($id{
  50.         tangra_if_not_int_throw_e($id);
  51.  
  52.         $this->id = $id;
  53.     }
  54.  
  55.  
  56.     /**
  57.      * Gets ID
  58.      *
  59.      * @return integer 
  60.      */
  61.     public function get_id({
  62.         return $this->id;
  63.     }
  64.  
  65.  
  66.     /**
  67.      * Sets path to release file
  68.      *
  69.      * @param string $file_path 
  70.      */
  71.     public function set_file_path($file_path{
  72.         $this->file_path = $file_path;
  73.     }
  74.  
  75.  
  76.     /**
  77.      * Gets path to release file
  78.      *
  79.      * @return string 
  80.      */
  81.     public function get_file_path({
  82.         return $this->file_path;
  83.     }
  84.  
  85.  
  86.     /**
  87.      * Sets release ID
  88.      *
  89.      * @param integer $module_release 
  90.      */
  91.     public function set_module_release($module_release{
  92.         tangra_if_not_int_throw_e($module_release);
  93.  
  94.         $this->module_release = $module_release;
  95.     }
  96.  
  97.  
  98.     /**
  99.      * Gets release ID
  100.      *
  101.      * @return unknown 
  102.      */
  103.     public function get_module_release({
  104.         return $this->module_release;
  105.     }
  106. }