public function delete(){
if(intval($this->curFieldValue['id']))
static::delID($this->curFieldValue['id']);
}
static::delID($this->curFieldValue['id']);
class BaseClass {
public static function base_create($class, $params = array()) {
return new $class($params);
}
}
class OtherClass extends BaseClass {
public static function create($params = array()) {
return self::base_create(__CLASS__, $params);
}
}