Class Folks
Folks Base Class.
Copyright Obala d.o.o. (www.obala.si)
See the enclosed file COPYING for license information (GPL). If you
did not receive this file, see http://www.horde.org/licenses/gpl.
Methods summary
public static
|
#
format_date( string $time )
Returns published videos from user
Returns published videos from user
Parameters
- $time
- $user User to check
|
public static
|
#
format_datetime( string $time )
Returns published videos from user
Returns published videos from user
Parameters
- $time
- $user User to check
|
public static
|
#
getCountries( )
Returns avaiable countries
Returns avaiable countries
|
public static
|
#
getImageUrl( string $user, string $view = 'small', boolean $full = false )
Get Image path
Parameters
- $user
- Image username
- $view
- View type
- $full
- Generate a full URL.
|
public
|
#
getUrlFor( string $controller, array $data = null, boolean $full = false, integer $append_session = 0 )
Return a properly formatted link depending on the global pretty url
configuration
Return a properly formatted link depending on the global pretty url
configuration
Parameters
- $controller
- The controller to generate a URL for.
- $data
- The data needed to generate the URL.
- $full
- Generate a full URL.
- $append_session
- <p>0 = only if needed, 1 = always,
-1 = never.</p>
|
public static
|
|
public static
|
#
getCAPTCHA( mixed $new = false )
Returns a new or the current CAPTCHA string.
Returns a new or the current CAPTCHA string.
|
public static
string
|
#
encodeString( string $string, string $key )
Get encripted cookie login string
Get encripted cookie login string
Parameters
- $string
- String to encode
- $key
- Key to encode with
Returns
string Encripted
|
public static
true
|
#
sendMail( string $to, string $subject, string $body, array $attaches = array() )
Send email with attachments
Send email with attachments
Parameters
- $to
- $from From address
- $subject
- Subject of message
- $body
- Body of message
- $attaches
- Path of file to attach
Returns
true on succes, PEAR_Error on failure
|
public static
email
|
#
getUserEmail( string $user )
Fetch user email
Parameters
Returns
email on succes, PEAR_Error on failure
|