description getter and setter.

@param  string
@return mixed
960481
public function description(string $value = null)
    {
        if (null === $value) {
            return $this->description;
        }
        $this->description = $value;
        return $this;
    }
886614
public function setDescription($v)
    {
        if ($v !== null && is_string($v)) {
            $v = (string) $v;
        }

        $this->description = $v;

        return $this;
    }
760478
public function description($description = null)
    {
        if ($description === null) {
            return $this->description;
        }

        $this->description = $description;
    }
954203
public function __isset($name) 
    {
        $getter = 'get' . $name;
        if (method_exists($this, $getter)) {
            return $this->$getter() !== null;
        }
        
        $name = strtolower($name);
        
        return array_key_exists($name, $this->attrs);
    }
115904
public function &__get($name)
    {
        // This method must return a reference and not use ternary operators for __set()ing multi-dimensional arrays
        // http://stackoverflow.com/questions/4310473/using-set-with-arrays-solved-but-why
        // http://stackoverflow.com/questions/5966918/return-null-by-reference-via-get
        switch ($name) {
            case 'global':
                if (is_null(static::$global)) {
                    static::$global = new Container;
                }

                return static::$global;
                break;
            case 'session':
                if (is_null(static::$session)) {
                    static::$session = new Session;
                }

                return static::$session;
                break;
            case 'request':
            case 'dir':
            case 'url':
            case 'html':
                return $this->$name;
                break;
            default:
                return $this->html[strtolower($name)];
                break;
        }
    }
743836
public function getTidy($string)
    {
        if (class_exists('Tidy')) {
            if (!$this->_tidy) {
                $this->_tidy = new Tidy();
            }

            $this->_tidy->parseString($string, $this->_config, $this->_encoding);
        }

        return $this->_tidy;
    }
317067
public function getValue($object)
    {
        $get = 'get'.ucfirst($this->property);
        $has = 'has'.ucfirst($this->property);
        $is = 'is'.ucfirst($this->property);

        if (method_exists($object, $get)) {
            return $object->$get();
        }

        if (method_exists($object, $has)) {
            return $object->$has();
        }

        if (method_exists($object, $is)) {
            return $object->$is();
        }

        throw DeserializerLogicException::createMissingMethod(get_class($object), [$get, $has, $is]);
    }
104038
public function get_description() {
        $name = $this->other['name'];
        $plugin = isset($this->other['plugin']) ? $this->other['plugin'] : 'core';
        $value = isset($this->other['value']) ? $this->other['value'] : 'Not set';
        $oldvalue = isset($this->other['oldvalue']) ? $this->other['oldvalue'] : 'Not set';
        return "The user with id '$this->userid' changed the config setting '$name' for component '$plugin' " .
               "from '$oldvalue' to '$value'.";
    }
379136
function createDescription() {
    $cnt = count( $this->description );
    if( 0 >= $cnt )
      return;
    $descriptions    = null;
    foreach( $this->description as $description ) {
      $attributes    = $this->_createParams( $description['params'], array( 'ALTREP', 'LANGUAGE' ));
      $content       = $this->_strrep( $description['value'] );
      $descriptions .= $this->_createElement( 'DESCRIPTION', $attributes, $content );
    }
    return $descriptions;
  }
280572
public function getter($attr)
    {
        if (isset($this->_getters[$attr])) {
            return $this->_getters[$attr];
        } elseif (isset($this->_props[$attr])) {
            return $this->_props[$attr]->getter($attr);
        } elseif (isset($this->_rels[$attr])) {
            return $this->_rels[$attr]->getter($attr);
        }

        throw new Exception("No getter available for $attr");
    }
1083480
public static function __getInstance($string)
    {
        $engine = self::detectBank($string);
        $engine->loadString($string);

        return $engine;
    }
80125
public function get($key)
    {
        $setting = $this->getSettingOrFail($key);

        $value = $this->backend->getSetting($key);

        return  is_null($value) ? $setting->default() : $value;
    }
1315441
public function getAttribute($key)
    {
        $value = Arr::get($this->attributes, $key);

        // First we will check for the presence of a mutator for the set operation
        // which simply lets the developers tweak the attribute as it is set.
        if (method_exists($this, 'get' . Str::studly($key) . 'Attribute')) {
            $method = 'get' . Str::studly($key) . 'Attribute';

            return $this->{$method}($value);
        }

        return $value;
    }
781440
public function _get($name)
    {
        $object = $this->getObject();
        $property = $this->getReflectionProperty($name);

        $value = $property->getValue($this->getObject());
        if (is_array($value))
		{
		    $property->setValue($object, new \ArrayObject($value));
        }

        return $property->getValue($this->getObject());
    }
1258917
public function setGetfield($string)
	{
		if (!is_null($this->getPostfields()))
		{
			throw new \Exception('You can only choose get OR post / post fields.');
		}
		$getfields = preg_replace('/^\?/', '', explode('&', $string));
		$params = array();
		foreach ($getfields as $field)
		{
			if ($field !== '')
			{
				list($key, $value) = explode('=', $field);
				$params[$key] = $value;
			}
		}
		$this->getfield = '?' . http_build_query($params, '', '&');
		return $this;
	}
431006
public function get($handle)
    {
        $this->setting = $this->items->where('handle', $handle)->first();

        return $this->setting;
    }
8348
public function getString($string)
    {
        // Exact match?
        if (isset($this->strings[$string])) {
            return $this->strings[$string];
        } else {
            return $string;
        }
    }