\Folks

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.

Summary

Methods
Properties
Constants
format_date()
format_datetime()
getCountries()
getImageUrl()
getUrlFor()
calcAge()
getCAPTCHA()
encodeString()
sendMail()
getUserEmail()
No public properties found
VFS_PATH
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

VFS_PATH

VFS_PATH

Methods

format_date()

format_date(  $time) 

Returns published videos from user

Parameters

$time

format_datetime()

format_datetime(  $time) 

Returns published videos from user

Parameters

$time

getCountries()

getCountries() 

Returns avaiable countries

getImageUrl()

getImageUrl(string  $user, string  $view = 'small', boolean  $full = false) 

Get Image path

Parameters

string $user

Image username

string $view

View type

boolean $full

Generate a full URL.

getUrlFor()

getUrlFor(string  $controller, array  $data = null, boolean  $full = false, integer  $append_session) 

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

Parameters

string $controller

The controller to generate a URL for.

array $data

The data needed to generate the URL.

boolean $full

Generate a full URL.

integer $append_session

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

calcAge()

calcAge(  $birthday) 

Calculate user age

Parameters

$birthday

getCAPTCHA()

getCAPTCHA(  $new = false) 

Returns a new or the current CAPTCHA string.

Parameters

$new

encodeString()

encodeString(string  $string, string  $key) : string

Get encripted cookie login string

Parameters

string $string

String to encode

string $key

Key to encode with

Returns

string —

Encripted

sendMail()

sendMail(  $to, string  $subject, string  $body, array  $attaches = array()) : true

Send email with attachments

Parameters

$to
string $subject

Subject of message

string $body

Body of message

array $attaches

Path of file to attach

Returns

true —

on succes, PEAR_Error on failure

getUserEmail()

getUserEmail(string  $user) : \email

Fetch user email

Parameters

string $user

Username

Returns

\email —

on succes, PEAR_Error on failure