[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/vtlib/Vtiger/ -> LinkData.php (source)

   1  <?php
   2  
   3  /* +*******************************************************************************

   4   *  The contents of this file are subject to the vtiger CRM Public License Version 1.0

   5   * ("License"); You may not use this file except in compliance with the License

   6   * The Original Code is:  vtiger CRM Open Source

   7   * The Initial Developer of the Original Code is vtiger.

   8   * Portions created by vtiger are Copyright (C) vtiger.

   9   * All Rights Reserved.

  10   *

  11   * ******************************************************************************* */
  12  
  13  /**

  14   * @author MAK

  15   */
  16  
  17  /**

  18   * Description of LinkData

  19   *

  20   * @author MAK

  21   */
  22  class Vtiger_LinkData {
  23      protected $input;
  24      protected $link;
  25      protected $user;
  26      protected $module;
  27  
  28  	public function __construct($link, $user, $input = null) {
  29          global $currentModule;
  30          $this->link = $link;
  31          $this->user = $user;
  32          $this->module = $currentModule;
  33          if(empty($input)) {
  34              $this->input = $_REQUEST;
  35          } else {
  36              $this->input = $input;
  37          }
  38      }
  39  
  40  	public function getInputParameter($name) {
  41          return $this->input[$name];
  42      }
  43  
  44      /**

  45       *

  46       * @return Vtiger_Link

  47       */
  48  	public function getLink() {
  49          return $this->link;
  50      }
  51  
  52      /**

  53       *

  54       * @return Users 

  55       */
  56  	public function getUser() {
  57          return $this->user;
  58      }
  59  
  60  	public function getModule() {
  61          return $this->module;
  62      }
  63  
  64  }
  65  
  66  ?>


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1