CoolCMS API

ManageKeyAwareInterface extends OwnerAwareInterface, IdentifiableInterface

Record that a visitor without an account can manage through the "manage" link from the insert e-mail (Bazaar advert, Comcat company profile, Discussion post).

The key rules are in AdvertManageKey, storing and verifying in ManageKeyTrait. The link is bound to self::getPassword() (the password hash, or for a guest post a random secret the server set on insert): once it changes, the link and every open edit session stop working. A record with an owner (getOwnerUserId() > 0) is managed after login and never gets a key.

Table of Contents

Methods

getId()  : int|null
getManageKeyExpires()  : DateTime|null
getManageKeyHash()  : string|null
getOwnerUserId()  : int|null
Returns the id of the user who created the record; `null` for an unknown or anonymous owner.
getPassword()  : string
Password hash (or the random secret of a guest post) the key is bound to; empty = no key can be issued.

Methods

getOwnerUserId()

Returns the id of the user who created the record; `null` for an unknown or anonymous owner.

public getOwnerUserId() : int|null
Return values
int|null

getPassword()

Password hash (or the random secret of a guest post) the key is bound to; empty = no key can be issued.

public getPassword() : string
Return values
string
On this page

Search results