ZenphotoCMS 1.6.6

userAddressFields extends fieldExtender

This is the root class for use by plugins to extend the Zenphoto database table fields. The administrative tabs for the objects will have input items for these new fields. They will be placed in the proximate location of the "custom data" field on the page.

Table of Contents

Methods

__construct()  : mixed
_addToSearch()  : array<string|int, mixed>
Updates the list of search fields to include the new fields
_adminEdit()  : string
Displays the edit fields for user type objects
_adminNotice()  : type
Notification of need to run setup
_adminSave()  : bool
Process the save of user object type elements
_getCustomData()  : array<string|int, mixed>
Returns an array with the content of the custom fields for the object
_mediaItemEdit()  : string
Displays the edit fields for image and album objects
_mediaItemSave()  : mixed
Processes the save of image and album objects
_register()  : mixed
registers filters for handling display and edit of objects as appropriate
_setCustomData()  : mixed
_zenpageItemEdit()  : string
Displays the edit fields for zenpage objects
_zenpageItemSave()  : string
Processes the save of zenpage objects
addToSearch()  : type
adminEdit()  : type
adminNotice()  : mixed
adminSave()  : mixed
constructor()  : mixed
This method establishes the current set of database fields. It will add the fields to the database if they are not already present. Fields from previous constructor calls that are no longer in the list will be removed from the database (along with any data associated with them.)
fields()  : type
getCustomData()  : type
mediaItemEdit()  : type
mediaItemSave()  : type
register()  : mixed
setCustomData()  : mixed
zenpageItemEdit()  : type
zenpageItemSave()  : type

Methods

__construct()

public __construct() : mixed
Tags
global

type $_userAddressFields

global

type $_zp_db

_addToSearch()

Updates the list of search fields to include the new fields

public static _addToSearch(array<string|int, mixed> $list, mixed $fields) : array<string|int, mixed>
Parameters
$list : array<string|int, mixed>

the list of fields as known to the search engine

$fields : mixed
Return values
array<string|int, mixed>

_adminEdit()

Displays the edit fields for user type objects

public static _adminEdit(string $html, object $userobj, int $i, string $background, bool $current, mixed $fields) : string
Parameters
$html : string
$userobj : object
$i : int
$background : string
$current : bool
$fields : mixed
Return values
string

_adminNotice()

Notification of need to run setup

public static _adminNotice(type $tab, type $subtab, type $me) : type
Parameters
$tab : type
$subtab : type
$me : type
Return values
type

_adminSave()

Process the save of user object type elements

public static _adminSave(bool $updated, object $userobj, int $i, bool $alter, mixed $fields) : bool
Parameters
$updated : bool
$userobj : object
$i : int
$alter : bool
$fields : mixed
Return values
bool

_getCustomData()

Returns an array with the content of the custom fields for the object

public static _getCustomData(object $obj, array<string|int, mixed> $fields) : array<string|int, mixed>
Parameters
$obj : object
$fields : array<string|int, mixed>
Return values
array<string|int, mixed>

_mediaItemEdit()

Displays the edit fields for image and album objects

public static _mediaItemEdit(string $html, object $object, int $i, mixed $fields) : string
Parameters
$html : string
$object : object
$i : int
$fields : mixed
Return values
string

_mediaItemSave()

Processes the save of image and album objects

public static _mediaItemSave(object $object, int $i, mixed $fields) : mixed
Parameters
$object : object
$i : int
$fields : mixed

_register()

registers filters for handling display and edit of objects as appropriate

public static _register(mixed $me, mixed $fields) : mixed
Parameters
$me : mixed
$fields : mixed

_setCustomData()

public static _setCustomData(type $obj, type $values) : mixed
Parameters
$obj : type
$values : type

_zenpageItemEdit()

Displays the edit fields for zenpage objects

public static _zenpageItemEdit(string $html, object $object, mixed $fields) : string
Parameters
$html : string
$object : object
$fields : mixed
Return values
string

_zenpageItemSave()

Processes the save of zenpage objects

public static _zenpageItemSave(string $custom, object $object, mixed $fields) : string
Parameters
$custom : string
$object : object
$fields : mixed
Return values
string

addToSearch()

public static addToSearch(type $list) : type
Parameters
$list : type
Return values
type

adminEdit()

public static adminEdit(type $html, type $userobj, type $i, type $background, type $current) : type
Parameters
$html : type
$userobj : type
$i : type
$background : type
$current : type
Return values
type

adminNotice()

public static adminNotice(type $tab, type $subtab) : mixed
Parameters
$tab : type
$subtab : type

adminSave()

public static adminSave(type $updated, type $userobj, type $i, type $alter) : mixed
Parameters
$updated : type
$userobj : type
$i : type
$alter : type

constructor()

This method establishes the current set of database fields. It will add the fields to the database if they are not already present. Fields from previous constructor calls that are no longer in the list will be removed from the database (along with any data associated with them.)

public constructor(mixed $me, array<string|int, mixed> $newfields) : mixed
Parameters
$me : mixed
$newfields : array<string|int, mixed>

getCustomData()

public static getCustomData(type $obj) : type
Parameters
$obj : type
Return values
type

mediaItemEdit()

public static mediaItemEdit(type $html, type $object, type $i) : type
Parameters
$html : type
$object : type
$i : type
Return values
type

mediaItemSave()

public static mediaItemSave(type $object, type $i) : type
Parameters
$object : type
$i : type
Return values
type

setCustomData()

public static setCustomData(type $obj, type $values) : mixed
Parameters
$obj : type
$values : type

zenpageItemEdit()

public static zenpageItemEdit(type $html, type $object) : type
Parameters
$html : type
$object : type
Return values
type

zenpageItemSave()

public static zenpageItemSave(type $custom, type $object) : type
Parameters
$custom : type
$object : type
Return values
type

        
On this page

Search results