auxbuss, on 25 August 2009 - 08:08 AM, said:
I'm just going to grab a class diagram and see how extensive the changes would be.
Could you give me some hints on the main objects with life cycles. Thanks.
Posted 25 August 2009 - 08:18 AM
auxbuss, on 25 August 2009 - 08:08 AM, said:
Posted 25 August 2009 - 11:28 AM
qiang, on 25 August 2009 - 08:11 AM, said:
Posted 25 August 2009 - 11:38 AM
Posted 25 August 2009 - 01:38 PM
Posted 25 August 2009 - 02:36 PM
Posted 25 August 2009 - 02:57 PM
qiang, on 25 August 2009 - 11:38 AM, said:
public function __construct($configuration=null)
{
... preinit ...
parent::__construct($configuration);
... init or post init ...
}
Posted 25 August 2009 - 03:03 PM
public function init()
{
$this->attachBehaviors($this->behaviors);
$this->_initialized=true;
}
$a = new CAssetManager;
$a->behaviors = array('name1'=>'behavior1', 'name2'=>'behavior2');
$a->init();
$a = new CAssetManager; $a->init();
$a = new CAssetManager;
$a->attachBehaviors = array('name1'=>'behavior1', 'name2'=>'behavior2');
$a = new CAssetManager;
$db = new CDbConnection;
$db->behaviors = array('name1'=>'behavior1', 'name2'=>'behavior2');
$db->init();
$db->active = true;
$db = new CDbConnection;
$db->behaviors = array('name1'=>'behavior1', 'name2'=>'behavior2');
$db->init();
$db = new CDbConnection;
$db->behaviors = array('name1'=>'behavior1', 'name2'=>'behavior2');
lots of stuff happens here
$db->init();
$db->active = true;
$db = new CDbConnection;
Posted 25 August 2009 - 03:16 PM
pestaa, on 25 August 2009 - 02:57 PM, said:
public function __construct($configuration=null)
{
... preinit ...
parent::__construct($configuration);
... init or post init ...
}
Posted 25 August 2009 - 03:29 PM
Posted 25 August 2009 - 03:30 PM
qiang, on 25 August 2009 - 03:16 PM, said:
Posted 25 August 2009 - 03:43 PM
class Employee {
private $_type;
private function __constuct($type) {
$this->_type = $type;
}
static function create($type) {
return new Employee($type);
}
}
Posted 25 August 2009 - 03:49 PM
Posted 25 August 2009 - 04:05 PM
qiang, on 25 August 2009 - 03:29 PM, said:
Quote
Posted 25 August 2009 - 04:28 PM
Posted 25 August 2009 - 04:41 PM
Quote
Quote
Posted 25 August 2009 - 04:49 PM
Posted 25 August 2009 - 06:41 PM
Posted 26 August 2009 - 02:16 PM
Quote
Posted 26 August 2009 - 02:36 PM