Example #1
0
 /**
  * Create a new RoleModel object
  *
  * @param  Array     list of attributes for this RoleModel object
  * @return RoleModel
  */
 public static function create($attributes)
 {
     if (!isset(self::$roleTable)) {
         self::$roleTable = QFrame_Db_Table::getTable('role');
     }
     $role = new RoleModel(self::$roleTable->createRow());
     return $role->setAttributes($attributes);
 }