library/core/class.controller.php
public function SetData($Key, $Value = NULL, $AddProperty = FALSE) {
      if (is_array($Key)) {
         $this->Data = array_merge($this->Data, $Key);

         if ($AddProperty === TRUE) {
            foreach ($Key as $Name => $Value) {
               $this->$Name = $Value;
            }
         }
         return;
      }

      $this->Data[$Key] = $Value;
      if($AddProperty === TRUE) {
         $this->$Key = $Value;
      }
      return $Value;
   }
public function SetData($Key, $Value = NULL, $AddProperty = FALSE) {
      if (is_array($Key)) {
         $this->Data = array_merge($this->Data, $Key);

         if ($AddProperty === TRUE) {
            foreach ($Key as $Name => $Value) {
               $this->$Name = $Value;
            }
         }
         return;
      }

      $this->Data[$Key] = $Value;
      if($AddProperty === TRUE) {
         $this->$Key = $Value;
      }
      return $Value;
   }
public function SetData ( $ Key , $ Value = NULL , $ AddProperty = FALSE ) { if ( is_array ( $ Key ) ) { $ this -> Data = array_merge ( $ this -> Data , $ Key ) ; if ( $ AddProperty === TRUE ) { foreach ( $ Key as $ Name => $ Value ) { $ this -> $ Name = $ Value ; } } return ; } $ this -> Data [ $ Key ] = $ Value ; if ( $ AddProperty === TRUE ) { $ this -> $ Key = $ Value ; } return $ Value ; }
Set data from a method call.

@param string $Key The key that identifies the data.
@param mixed $Value The data.
@param mixed $AddProperty Whether or not to also set the data as a property of this object.
@return mixed The $Value that was set.
Set data from a method call .