Location: PHPKode > projects > Anahita Social Engine > dependencies/plg_system_socialengine/socialengine/domain/description/attribute/abstract.php
<?php

abstract class AnDomainDescriptionAttributeAbstract extends AnDomainDescriptionProperty 
{
	protected $_default;
	
	public function __construct($options)
	{		
		parent::__construct($options);
		
		$default = array(
			'default' => null
		);
		
		$options = array_merge($default, $options);
		
		$this->_default = $options['default'];
	}
		
	/**
	 * Set default value
	 * 
	 * @return 
	 * @param $value mixed
	 */
	public function setDefault($value)
	{
		$this->_default = $value;
		return $this;
	}
	
	/**
	 * Return default value
	 * 
	 * @return mixed
	 */
	public function getDefaultValue()
	{
		return $this->_default;
	}
}
Return current item: Anahita Social Engine