<?php
/**
* @version 1.0.0
* @category Anahita Social Engineâ¢
* @copyright Copyright (C) 2008 - 2010 rmdStudio Inc. and Peerglobe Technology Inc. All rights reserved.
* @license GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
* @link http://www.anahitapolis.com
*/
class AnModelActorName extends KObject
{
static protected $_default = 'User';
static function serialize($object)
{
return array('value' => (string) $object);
}
static function setDefault(AnModelActorName $name)
{
self::$_default = $name;
}
static function getDefault()
{
return self::$_default;
}
protected $_value;
/**
* CONSTRUCTOR
*/
public function __construct($options=array())
{
$options = $this->_initialize($options);
$this->_value = $options['value'];
}
protected function _initialize($options)
{
$default = array(
'value' => AnModelActorName::getDefault()
);
return array_merge($default, $options);
}
public function getValue()
{
return $this->_value;
}
public function __toString()
{
return ucwords($this->_value);
}
//end class
}