\Profileable
Adds a profile to an object, as well as fields to manage them.
Depends on and extends silverstripe-addressable
This extensions also integrates with the extension to
save co-ordinates on object write.
Synopsis
class Profileable
extends Addressable
{
- // members
- public static array $ProfilePictureAllowedTypes = ;
- public static string $ProfilePictureFolder = 'profilepictures';
- public static string $ProfilePictureNamePrefix = 'profilepic-';
- private static array $db = ;
- private static array $has_one = ;
- // methods
- public void __construct()
- public void updateCMSFields()
- protected array getProfileFields()
- public bool hasProfile()
- public string getFullName()
- public string getFullProfile()
- public string getFullAddress()
- public string getFullProfileHTML()
- public string ProfileMap()
- public void onAfterWrite()
Hierarchy
Extends
- Addressable
Tasks
Line | Task |
---|---|
88 | gender enum |
Members
private
- $db — array
- $has_one — array
public
- $ProfilePictureAllowedTypes — array
- $ProfilePictureFolder — string
- $ProfilePictureNamePrefix — string
Methods
protected
public
- __construct() — Profileable constructor.
- ProfileMap()
- getFullAddress()
- getFullName()
- getFullProfile()
- getFullProfileHTML()
- hasProfile()
- onAfterWrite()
- updateCMSFields()