|
|
|
|
<?php
|
|
|
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
|
|
|
|
|
|
namespace Chamilo\CoreBundle\Entity;
|
|
|
|
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SettingsOptions.
|
|
|
|
|
*
|
|
|
|
|
* @ORM\Table(
|
|
|
|
|
* name="settings_options",
|
|
|
|
|
* options={"row_format":"DYNAMIC"},
|
|
|
|
|
* uniqueConstraints={@ORM\UniqueConstraint(name="unique_setting_option", columns={"variable", "value"})}
|
|
|
|
|
* )
|
|
|
|
|
* @ORM\Entity
|
|
|
|
|
*/
|
|
|
|
|
class SettingsOptions
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @var int
|
|
|
|
|
*
|
|
|
|
|
* @ORM\Column(name="id", type="integer")
|
|
|
|
|
* @ORM\Id
|
|
|
|
|
* @ORM\GeneratedValue
|
|
|
|
|
*/
|
|
|
|
|
protected $id;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var string
|
|
|
|
|
*
|
|
|
|
|
* @ORM\Column(name="variable", type="string", length=255, nullable=true)
|
|
|
|
|
*/
|
|
|
|
|
protected $variable;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var string
|
|
|
|
|
*
|
|
|
|
|
* @ORM\Column(name="value", type="string", length=255, nullable=true)
|
|
|
|
|
*/
|
|
|
|
|
protected $value;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var string
|
|
|
|
|
*
|
|
|
|
|
* @ORM\Column(name="display_text", type="string", length=255, nullable=false)
|
|
|
|
|
*/
|
|
|
|
|
protected $displayText;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Set variable.
|
|
|
|
|
*
|
|
|
|
|
* @param string $variable
|
|
|
|
|
*
|
|
|
|
|
* @return SettingsOptions
|
|
|
|
|
*/
|
|
|
|
|
public function setVariable($variable)
|
|
|
|
|
{
|
|
|
|
|
$this->variable = $variable;
|
|
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get variable.
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
public function getVariable()
|
|
|
|
|
{
|
|
|
|
|
return $this->variable;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Set value.
|
|
|
|
|
*
|
|
|
|
|
* @param string $value
|
|
|
|
|
*
|
|
|
|
|
* @return SettingsOptions
|
|
|
|
|
*/
|
|
|
|
|
public function setValue($value)
|
|
|
|
|
{
|
|
|
|
|
$this->value = $value;
|
|
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get value.
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
public function getValue()
|
|
|
|
|
{
|
|
|
|
|
return $this->value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Set displayText.
|
|
|
|
|
*
|
|
|
|
|
* @param string $displayText
|
|
|
|
|
*
|
|
|
|
|
* @return SettingsOptions
|
|
|
|
|
*/
|
|
|
|
|
public function setDisplayText($displayText)
|
|
|
|
|
{
|
|
|
|
|
$this->displayText = $displayText;
|
|
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get displayText.
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
public function getDisplayText()
|
|
|
|
|
{
|
|
|
|
|
return $this->displayText;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get id.
|
|
|
|
|
*
|
|
|
|
|
* @return int
|
|
|
|
|
*/
|
|
|
|
|
public function getId()
|
|
|
|
|
{
|
|
|
|
|
return $this->id;
|
|
|
|
|
}
|
|
|
|
|
}
|