Finalise invitation.
Finalise invitation.
OTServ and it's database doesn't provide such feature like guild invitations. In order to use this mechanism you have to write own invitations drivers and assign it using setInvitesDriver() method.
Parameters:
API Tags:
Information Tags:
| Version: | 0.0.4 |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Throws: | E_OTS_NoDriver If there is no invites driver assigned. |
| Since: | 0.0.4 |
Accepts player.
Accepts player.
OTServ and it's database doesn't provide such feature like membership requests. In order to use this mechanism you have to write own requests drivers and assign it using setRequestsDriver() method.
Parameters:
API Tags:
Information Tags:
| Version: | 0.0.4 |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Throws: | E_OTS_NoDriver If there is no requests driver assigned. |
| Since: | 0.0.4 |
Returns number of ranks within.
Returns number of ranks within.
API Tags:
| Return: | Count of ranks. |
| Access: | public |
Information Tags:
| Version: | 0.0.5 |
| Version: | 0.0.4 |
| Throws: | PDOException On PDO operation error. |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Since: | 0.0.4 |
| Since: | 0.0.5 |
Implementation of:
- Countable::count
Deletes guild.
Deletes guild.
API Tags:
Information Tags:
| Version: | 0.0.5 |
| Version: | 0.0.4 |
| Throws: | PDOException On PDO operation error. |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Since: | 0.0.4 |
| Since: | 0.0.5 |
Deletes invitation for player to guild.
Deletes invitation for player to guild.
OTServ and it's database doesn't provide such feature like guild invitations. In order to use this mechanism you have to write own invitations drivers and assign it using setInvitesDriver() method.
Parameters:
API Tags:
Information Tags:
| Version: | 0.0.4 |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Throws: | E_OTS_NoDriver If there is no invites driver assigned. |
| Since: | 0.0.4 |
Deletes request from player.
Deletes request from player.
OTServ and it's database doesn't provide such feature like membership requests. In order to use this mechanism you have to write own requests drivers and assign it using setRequestsDriver() method.
Parameters:
API Tags:
Information Tags:
| Version: | 0.0.4 |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Throws: | E_OTS_NoDriver If there is no requests driver assigned. |
| Since: | 0.0.4 |
void find(
string
$name
)
|
|
Loads guild by it's name.
Loads guild by it's name.
Parameters:
|
string |
$name: |
Guild's name. |
API Tags:
Information Tags:
| Version: | 0.0.5 |
| Version: | 0.0.4 |
| Throws: | PDOException On PDO operation error. |
| Since: | 0.0.4 |
Redefinition of:
- OTS_Row_DAO::find()
- Loads row by it's name.
Guild creation data.
Guild creation data.
API Tags:
| Return: | Guild creation data. |
| Access: | public |
Information Tags:
| Version: | 0.0.4 |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Since: | 0.0.4 |
string getCustomField(
string
$field
)
|
|
Reads custom field.
Reads custom field.
Reads field by it's name. Can read any field of given record that exists in database.
Note: You should use this method only for fields that are not provided in standard setters/getters (SVN fields). This method runs SQL query each time you call it so it highly overloads used resources.
Parameters:
|
string |
$field: |
Field name. |
API Tags:
| Return: | Field value. |
| Access: | public |
Information Tags:
| Version: | 0.0.8 |
| Version: | 0.0.4 |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Since: | 0.0.4 |
| Throws: | PDOException On PDO operation error. |
API Tags:
| Return: | List of ranks. |
| Deprecated: | 0.0.5 Use getGuildRanksList(). |
| Access: | public |
Information Tags:
| Version: | 0.1.0 |
| Version: | 0.0.4 |
| Since: | 0.0.4 |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
List of ranks in guild.
List of ranks in guild.
In difference to getGuildRanks() method this method returns filtered OTS_GuildRanks_List object instead of array of OTS_GuildRank objects. It is more effective since OTS_GuildRanks_List doesn't perform all rows loading at once.
Note: Returned object is only prepared, but not initialised. When using as parameter in foreach loop it doesn't matter since it will return it's iterator, but if you will wan't to execute direct operation on that object you will need to call rewind() method first.
API Tags:
| Return: | List of ranks from current guild. |
| Access: | public |
Information Tags:
| Version: | 0.1.4 |
| Version: | 0.0.4 |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Since: | 0.0.5 |
| Since: | 0.0.4 |
Guild ID.
Guild ID.
API Tags:
| Return: | Guild ID. |
| Access: | public |
Information Tags:
| Version: | 0.0.4 |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Since: | 0.0.4 |
Returns ranks iterator.
Returns ranks iterator.
There is no need to implement entire Iterator interface since we have ranks list class for it.
API Tags:
| Return: | List of ranks. |
| Access: | public |
Information Tags:
| Version: | 0.0.5 |
| Version: | 0.0.4 |
| Throws: | PDOException On PDO operation error. |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Since: | 0.0.4 |
| Since: | 0.0.5 |
Implementation of:
- IteratorAggregate::getIterator
Guild name.
Guild name.
API Tags:
| Return: | Guild's name. |
| Access: | public |
Information Tags:
| Version: | 0.0.4 |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Since: | 0.0.4 |
Returns owning player of this player.
Returns owning player of this player.
API Tags:
| Return: | Owning player. |
| Access: | public |
Information Tags:
| Version: | 0.1.0 |
| Version: | 0.0.4 |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Since: | 0.0.4 |
| Throws: | PDOException On PDO operation error. |
Invites player to guild.
Invites player to guild.
OTServ and it's database doesn't provide such feature like guild invitations. In order to use this mechanism you have to write own invitations drivers and assign it using setInvitesDriver() method.
Parameters:
API Tags:
Information Tags:
| Version: | 0.0.4 |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Throws: | E_OTS_NoDriver If there is no invites driver assigned. |
| Since: | 0.0.4 |
Checks if object is loaded.
Checks if object is loaded.
API Tags:
| Return: | Load state. |
| Access: | public |
Information Tags:
| Version: | 0.0.4 |
| Since: | 0.0.4 |
Returns list of invited players.
Returns list of invited players.
OTServ and it's database doesn't provide such feature like guild invitations. In order to use this mechanism you have to write own invitations drivers and assign it using setInvitesDriver() method.
API Tags:
| Return: | List of invited players. |
| Access: | public |
Information Tags:
| Version: | 0.0.4 |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Throws: | E_OTS_NoDriver If there is no invites driver assigned. |
| Since: | 0.0.4 |
Returns list of players that requested membership.
Returns list of players that requested membership.
OTServ and it's database doesn't provide such feature like membership requests. In order to use this mechanism you have to write own requests drivers and assign it using setRequestsDriver() method.
API Tags:
| Return: | List of players. |
| Access: | public |
Information Tags:
| Version: | 0.0.4 |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Throws: | E_OTS_NoDriver If there is no requests driver assigned. |
| Since: | 0.0.4 |
Loads guild with given id.
Loads guild with given id.
Parameters:
API Tags:
Information Tags:
| Version: | 0.0.5 |
| Version: | 0.0.4 |
| Throws: | PDOException On PDO operation error. |
| Since: | 0.0.4 |
Redefinition of:
- OTS_Row_DAO::load()
- Loads row by it's ID.
Requests membership in guild for player player.
Requests membership in guild for player player.
OTServ and it's database doesn't provide such feature like membership requests. In order to use this mechanism you have to write own requests drivers and assign it using setRequestsDriver() method.
Parameters:
|
OTS_Player |
$player: |
Player that requested membership. |
API Tags:
Information Tags:
| Version: | 0.0.4 |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Throws: | E_OTS_NoDriver If there is no requests driver assigned. |
| Since: | 0.0.4 |
Saves guild in database.
Saves guild in database.
If guild is not loaded to represent any existing group it will create new row for it.
API Tags:
Information Tags:
| Version: | 0.0.5 |
| Version: | 0.0.4 |
| Throws: | PDOException On PDO operation error. |
| Since: | 0.0.4 |
void setCreationData(
int
$creationdata
)
|
|
Sets guild creation data.
Sets guild creation data.
This method only updates object state. To save changes in database you need to use save() method to flush changed to database.
Parameters:
|
int |
$creationdata: |
Guild creation data. |
API Tags:
Information Tags:
| Version: | 0.0.4 |
| Since: | 0.0.4 |
void setCustomField(
string
$field, mixed
$value
)
|
|
Writes custom field.
Writes custom field.
Write field by it's name. Can write any field of given record that exists in database.
Note: You should use this method only for fields that are not provided in standard setters/getters (SVN fields). This method runs SQL query each time you call it so it highly overloads used resources.
Note: Make sure that you pass $value argument of correct type. This method determinates whether to quote field value. It is safe - it makes you sure that no unproper queries that could lead to SQL injection will be executed, but it can make your code working wrong way. For example: $object->setCustomField('foo', '1'); will quote 1 as as string ('1') instead of passing it as a integer.
Parameters:
|
string |
$field: |
Field name. |
|
mixed |
$value: |
Field value. |
API Tags:
Information Tags:
| Version: | 0.0.5 |
| Version: | 0.0.4 |
| Throws: | E_OTS_NotLoaded If guild is not loaded. |
| Since: | 0.0.4 |
| Throws: | PDOException On PDO operation error. |
Assigns invites handler.
Assigns invites handler.
Parameters:
API Tags:
Information Tags:
| Version: | 0.0.4 |
| Since: | 0.0.4 |
void setName(
string
$name
)
|
|
Sets guild's name.
Sets guild's name.
This method only updates object state. To save changes in database you need to use save() method to flush changed to database.
Parameters:
API Tags:
Information Tags:
| Version: | 0.0.4 |
| Since: | 0.0.4 |
Assigns guild to owner.
Assigns guild to owner.
This method only updates object state. To save changes in database you need to use save() method to flush changed to database.
Parameters:
API Tags:
Information Tags:
| Version: | 0.0.4 |
| Throws: | E_OTS_NotLoaded If given $owner object is not loaded. |
| Since: | 0.0.4 |
Assigns requests handler.
Assigns requests handler.
Parameters:
|
IOTS_GuildAction |
$requests: |
Membership requests driver (don't pass it to clear driver). |
API Tags:
Information Tags:
| Version: | 0.0.4 |
| Since: | 0.0.4 |
Creates clone of object.
Creates clone of object.
Copy of object needs to have different ID. Also invites and requests drivers are copied and assigned to object's copy.
API Tags:
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.0.4 |
| Since: | 0.0.4 |
Redefinition of:
- OTS_Base_DAO::__clone()
- Creates clone of object.
mixed __get(
string
$name
)
|
|
Magic PHP5 method.
Magic PHP5 method.
Parameters:
|
string |
$name: |
Property name. |
API Tags:
| Return: | Property value. |
| Access: | public |
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.0.4 |
| Throws: | PDOException On PDO operation error. |
| Throws: | OutOfBoundsException For non-supported properties. |
| Since: | 0.0.4 |
| Since: | 0.1.0 |
void __set(
string
$name, mixed
$value
)
|
|
Magic PHP5 method.
Magic PHP5 method.
Parameters:
|
string |
$name: |
Property name. |
|
mixed |
$value: |
Property value. |
API Tags:
Information Tags:
| Version: | 0.1.0 |
| Version: | 0.0.4 |
| Throws: | OutOfBoundsException For non-supported properties. |
| Throws: | E_OTS_NotLoaded If passed parameter for owner field won't be loaded. |
| Since: | 0.0.4 |
| Since: | 0.1.0 |
Magic PHP5 method.
Magic PHP5 method.
Allows object serialisation.
API Tags:
| Return: | List of properties that should be saved. |
| Access: | public |
Information Tags:
| Version: | 0.0.4 |
| Since: | 0.0.4 |
Redefinition of:
- OTS_Base_DAO::__sleep()
- Magic PHP5 method.
Returns string representation of object.
Returns string representation of object.
If any display driver is currently loaded then it uses it's method. Else it returns guild name.
API Tags:
| Return: | String representation of object. |
| Access: | public |
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.0.4 |
| Since: | 0.0.4 |
| Since: | 0.1.0 |