Documentation

Folks
in package

Folks Base Class.

Copyright Obala d.o.o. (www.obala.si)

See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.

Tags
author

Duck duck@obala.net

Table of Contents

VFS_PATH  = '.horde/folks'
calcAge()  : mixed
Calculate user age
encodeString()  : string
Get encripted cookie login string
format_date()  : mixed
Returns published videos from user
format_datetime()  : mixed
Returns published videos from user
getCAPTCHA()  : mixed
Returns a new or the current CAPTCHA string.
getCountries()  : mixed
Returns avaiable countries
getImageUrl()  : mixed
Get Image path
getUrlFor()  : mixed
Return a properly formatted link depending on the global pretty url configuration
getUserEmail()  : email
Fetch user email
sendMail()  : true
Send email with attachments

Constants

VFS_PATH

public mixed VFS_PATH = '.horde/folks'

Methods

calcAge()

Calculate user age

public static calcAge(mixed $birthday) : mixed
Parameters
$birthday : mixed
Return values
mixed

encodeString()

Get encripted cookie login string

public static encodeString(string $string, string $key) : string
Parameters
$string : string

String to encode

$key : string

Key to encode with

Return values
string

Encripted

format_date()

Returns published videos from user

public static format_date(mixed $time) : mixed
Parameters
$time : mixed
Return values
mixed

format_datetime()

Returns published videos from user

public static format_datetime(mixed $time) : mixed
Parameters
$time : mixed
Return values
mixed

getCAPTCHA()

Returns a new or the current CAPTCHA string.

public static getCAPTCHA([mixed $new = false ]) : mixed
Parameters
$new : mixed = false
Return values
mixed

getCountries()

Returns avaiable countries

public static getCountries() : mixed
Return values
mixed

getImageUrl()

Get Image path

public static getImageUrl(string $user[, string $view = 'small' ][, bool $full = false ]) : mixed
Parameters
$user : string

Image username

$view : string = 'small'

View type

$full : bool = false

Generate a full URL.

Return values
mixed

getUrlFor()

Return a properly formatted link depending on the global pretty url configuration

public getUrlFor(string $controller[, array<string|int, mixed> $data = null ][, bool $full = false ], int $append_session) : mixed
Parameters
$controller : string

The controller to generate a URL for.

$data : array<string|int, mixed> = null

The data needed to generate the URL.

$full : bool = false

Generate a full URL.

$append_session : int

0 = only if needed, 1 = always, -1 = never.

Return values
mixed

getUserEmail()

Fetch user email

public static getUserEmail(string $user) : email
Parameters
$user : string

Username

Return values
email

on succes, PEAR_Error on failure

sendMail()

Send email with attachments

public static sendMail(mixed $to, string $subject, string $body[, array<string|int, mixed> $attaches = array() ]) : true
Parameters
$to : mixed
$subject : string

Subject of message

$body : string

Body of message

$attaches : array<string|int, mixed> = array()

Path of file to attach

Return values
true

on succes, PEAR_Error on failure

Search results