mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2799 from yearofthegus/document-magic-members
Documented magic properties of DataObject
This commit is contained in:
commit
124886a7f9
@ -61,6 +61,18 @@
|
|||||||
*
|
*
|
||||||
* @package framework
|
* @package framework
|
||||||
* @subpackage filesystem
|
* @subpackage filesystem
|
||||||
|
*
|
||||||
|
* @property string Name Basename of the file
|
||||||
|
* @property string Title Title of the file
|
||||||
|
* @property string Filename Filename including path
|
||||||
|
* @property string Content
|
||||||
|
* @property string ShowInSearch Boolean that indicates if file is shown in search. Doesn't apply to Folder
|
||||||
|
*
|
||||||
|
* @property int ParentID ID of parent File/Folder
|
||||||
|
* @property int OwnerID ID of Member who owns the file
|
||||||
|
*
|
||||||
|
* @method File Parent() Returns parent File
|
||||||
|
* @method Member Owner() Returns Member object of file owner.
|
||||||
*/
|
*/
|
||||||
class File extends DataObject {
|
class File extends DataObject {
|
||||||
|
|
||||||
|
@ -65,6 +65,11 @@
|
|||||||
*
|
*
|
||||||
* @package framework
|
* @package framework
|
||||||
* @subpackage model
|
* @subpackage model
|
||||||
|
*
|
||||||
|
* @property integer ID ID of the DataObject, 0 if the DataObject doesn't exist in database.
|
||||||
|
* @property string ClassName Class name of the DataObject
|
||||||
|
* @property string LastEdited Date and time of DataObject's last modification.
|
||||||
|
* @property string Created Date and time of DataObject creation.
|
||||||
*/
|
*/
|
||||||
class DataObject extends ViewableData implements DataObjectInterface, i18nEntityProvider {
|
class DataObject extends ViewableData implements DataObjectInterface, i18nEntityProvider {
|
||||||
|
|
||||||
|
@ -4,6 +4,20 @@
|
|||||||
*
|
*
|
||||||
* @package framework
|
* @package framework
|
||||||
* @subpackage security
|
* @subpackage security
|
||||||
|
*
|
||||||
|
* @property string Title Name of the group
|
||||||
|
* @property string Description Description of the group
|
||||||
|
* @property string Code Group code
|
||||||
|
* @property string Locked Boolean indicating whether group is locked in security panel
|
||||||
|
* @property int Sort
|
||||||
|
* @property string HtmlEditorConfig
|
||||||
|
*
|
||||||
|
* @property int ParentID ID of parent group
|
||||||
|
*
|
||||||
|
* @method Group Parent() Return parent group
|
||||||
|
* @method HasManyList Permissions() List of group permissions
|
||||||
|
* @method HasManyList Groups() List of child groups
|
||||||
|
* @method ManyManyList Roles() List of PermissionRoles
|
||||||
*/
|
*/
|
||||||
class Group extends DataObject {
|
class Group extends DataObject {
|
||||||
|
|
||||||
|
@ -11,6 +11,14 @@
|
|||||||
*
|
*
|
||||||
* @package framework
|
* @package framework
|
||||||
* @subpackage security
|
* @subpackage security
|
||||||
|
*
|
||||||
|
* @property string Email Email address used for login attempt
|
||||||
|
* @property string Status Status of the login attempt, either 'Success' or 'Failure'
|
||||||
|
* @property string IP IP address of user attempting to login
|
||||||
|
*
|
||||||
|
* @property int MemberID ID of the Member, only if Member with Email exists
|
||||||
|
*
|
||||||
|
* @method Member Member() Member object of the user trying to log in, only if Member with Email exists
|
||||||
*/
|
*/
|
||||||
class LoginAttempt extends DataObject {
|
class LoginAttempt extends DataObject {
|
||||||
|
|
||||||
|
@ -4,6 +4,24 @@
|
|||||||
*
|
*
|
||||||
* @package framework
|
* @package framework
|
||||||
* @subpackage security
|
* @subpackage security
|
||||||
|
*
|
||||||
|
* @property string FirstName
|
||||||
|
* @property string Surname
|
||||||
|
* @property string Email
|
||||||
|
* @property string Password
|
||||||
|
* @property string RememberLoginHash
|
||||||
|
* @property int NumVisit
|
||||||
|
* @property string LastVisited Date and time of last visit
|
||||||
|
* @property string AutoLoginHash
|
||||||
|
* @property string AutoLoginExpired
|
||||||
|
* @property string PasswordEncryption
|
||||||
|
* @property string Salt
|
||||||
|
* @property string PasswordExpiry
|
||||||
|
* @property string LockedOutUntil
|
||||||
|
* @property string Locale
|
||||||
|
* @property int FailedLoginCount
|
||||||
|
* @property string DateFormat
|
||||||
|
* @property string TimeFormat
|
||||||
*/
|
*/
|
||||||
class Member extends DataObject implements TemplateGlobalProvider {
|
class Member extends DataObject implements TemplateGlobalProvider {
|
||||||
|
|
||||||
|
@ -3,6 +3,14 @@
|
|||||||
* Keep track of users' previous passwords, so that we can check that new passwords aren't changed back to old ones.
|
* Keep track of users' previous passwords, so that we can check that new passwords aren't changed back to old ones.
|
||||||
* @package framework
|
* @package framework
|
||||||
* @subpackage security
|
* @subpackage security
|
||||||
|
*
|
||||||
|
* @property string Password
|
||||||
|
* @property string Salt
|
||||||
|
* @property string PasswordEncryption
|
||||||
|
*
|
||||||
|
* @property int MemberID ID of the Member
|
||||||
|
*
|
||||||
|
* @method Member Member() Owner of the password
|
||||||
*/
|
*/
|
||||||
class MemberPassword extends DataObject {
|
class MemberPassword extends DataObject {
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
|
@ -3,6 +3,14 @@
|
|||||||
* Represents a permission assigned to a group.
|
* Represents a permission assigned to a group.
|
||||||
* @package framework
|
* @package framework
|
||||||
* @subpackage security
|
* @subpackage security
|
||||||
|
*
|
||||||
|
* @property string Code
|
||||||
|
* @property int Arg
|
||||||
|
* @property int Type
|
||||||
|
*
|
||||||
|
* @property int GroupID
|
||||||
|
*
|
||||||
|
* @method Group Group()
|
||||||
*/
|
*/
|
||||||
class Permission extends DataObject implements TemplateGlobalProvider {
|
class Permission extends DataObject implements TemplateGlobalProvider {
|
||||||
|
|
||||||
|
@ -12,6 +12,12 @@
|
|||||||
*
|
*
|
||||||
* @package framework
|
* @package framework
|
||||||
* @subpackage security
|
* @subpackage security
|
||||||
|
*
|
||||||
|
* @property string Title
|
||||||
|
* @property string OnlyAdminCanApply
|
||||||
|
*
|
||||||
|
* @method HasManyList Codes() List of PermissionRoleCode objects
|
||||||
|
* @method ManyManyList Groups() List of Group objects
|
||||||
*/
|
*/
|
||||||
class PermissionRole extends DataObject {
|
class PermissionRole extends DataObject {
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
|
@ -4,6 +4,12 @@
|
|||||||
*
|
*
|
||||||
* @package framework
|
* @package framework
|
||||||
* @subpackage security
|
* @subpackage security
|
||||||
|
*
|
||||||
|
* @property string Code
|
||||||
|
*
|
||||||
|
* @property int RoleID
|
||||||
|
*
|
||||||
|
* @method PermissionRole Role()
|
||||||
*/
|
*/
|
||||||
class PermissionRoleCode extends DataObject {
|
class PermissionRoleCode extends DataObject {
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
|
Loading…
Reference in New Issue
Block a user