예제 #1
0
 public static function createByBiz($platid = 0, $name = '')
 {
     $cls = __CLASS__;
     $obj = new $cls(EntityID::create(strtolower($cls)));
     $obj->platid = $platid;
     $obj->name = $name;
     return Entity::createByBiz($obj);
 }
예제 #2
0
 public static function createByBiz($name = "anonymous author")
 {
     $cls = __CLASS__;
     $obj = new $cls(EntityID::create(strtolower($cls)));
     $obj->name = $name;
     $obj->status = Author::USING;
     return Entity::createByBiz($obj);
 }
예제 #3
0
 public static function createByBiz($name = "anonymous book", $author = null)
 {
     $cls = __CLASS__;
     $obj = new $cls(EntityID::create(strtolower($cls)));
     $obj->name = $name;
     $obj->author = $author;
     $obj->status = Constants::USING;
     return Entity::createByBiz($obj);
 }