class CFactory


Located at : UKNOWVA_ROOT/components/com_community/libraries/core.php

Methods

getUserFromTokenId($tokenId, $userId)

Function to allow caller to get a user object while it is not authenticated provided that it has a proper tokenid

boolean
loadUsers(Array $userIds)

Load multiple users at a same time to save up on the queries.

getUser(int $id = null, CUser $obj = null)

Retrieves a CUser object given the user id.

object
getConfig()

Retrieves CConfig configuration object

getFastCache($type = 'output')

Return fast, memory-based JCache object. For now, only APC cache will be supported

object
getCache(string $frontendEngine, string $frontendOptions = array())

Returns a configured version of Zend_Cache object

autoload()

Register autoload functions, using JImport::JLoader

object
getModel($name = '', $prefix = '', $config = array())

Return the model object, responsible for all db manipulation. Singleton

getBookmarks($uri)

No description

getToolbar()

No description

object
getView($name = '', $prefix = '', $viewType = '')

Return the view object, responsible for all db manipulation. Singleton

getActiveProfile() deprecated

return the currently viewed user profile object, for now, just return an object with username, id, email

object
getRequestUser()

Returns the current user requested via JRequest::getVar. 'userid' should be part of the request parameter

object
getInputFilter(boolean $allowHTML = false, boolean $simpleHTML = false)

Return standard joomla filter objects

setActiveProfile(integer $id = '') deprecated

Set current active profile

unsetActiveProfile() deprecated

No description

setCurrentURI()

Sets the current requested URI in the cookie so the system knows where it should be redirected to.

string
getLastURI()

Gets the last accessed URI from the cookie if user is coming from another page.

load(string $type, string $name)

Return the view object, responsible for all db manipulation. Singleton

Details

at line 84
getUserFromTokenId($tokenId, $userId)

Function to allow caller to get a user object while it is not authenticated provided that it has a proper tokenid

Parameters

$tokenId
$userId

at line 119
boolean loadUsers(Array $userIds)

Load multiple users at a same time to save up on the queries.

Parameters

Array $userIds An array of user ids to be loaded.

Return Value

boolean True upon success

at line 184
CUser getUser(int $id = null, CUser $obj = null)

Retrieves a CUser object given the user id.

Parameters

int $id A user id (optional)
CUser $obj An existing user object (optional)

Return Value

CUser A CUser object

at line 259
object getConfig()

Retrieves CConfig configuration object

Return Value

object CConfig object

at line 268
getFastCache($type = 'output')

Return fast, memory-based JCache object. For now, only APC cache will be supported

Parameters

$type

at line 297
object getCache(string $frontendEngine, string $frontendOptions = array())

Returns a configured version of Zend_Cache object

Parameters

string $frontendEngine Frontend engine to use
string $frontendOptions Additional options for the frontend object

Return Value

object Zend_Cache object

at line 367
autoload()

Register autoload functions, using JImport::JLoader

at line 380
object getModel($name = '', $prefix = '', $config = array())

Return the model object, responsible for all db manipulation. Singleton

Parameters

$name
$prefix
$config

Return Value

object model object

at line 412
getBookmarks($uri)

Parameters

$uri

at line 424
getToolbar()

at line 449
object getView($name = '', $prefix = '', $viewType = '')

Return the view object, responsible for all db manipulation. Singleton

Parameters

$name
$prefix
$viewType

Return Value

object model object

at line 518
getActiveProfile() deprecated

deprecated since 1.6.x

return the currently viewed user profile object, for now, just return an object with username, id, email

at line 540
object getRequestUser()

Returns the current user requested via JRequest::getVar. 'userid' should be part of the request parameter

Return Value

object Current CUser object

at line 554
object getInputFilter(boolean $allowHTML = false, boolean $simpleHTML = false)

Return standard joomla filter objects

Parameters

boolean $allowHTML True if you want to allow safe HTML through
boolean $simpleHTML True if you want to allow simple HTML tags

Return Value

object JFilterInput object

at line 575
setActiveProfile(integer $id = '') deprecated

deprecated since 1.6.x

Set current active profile

Parameters

integer $id id Current user id

at line 591
unsetActiveProfile() deprecated

deprecated since 1.6.x

at line 606
setCurrentURI()

Sets the current requested URI in the cookie so the system knows where it should be redirected to.

at line 620
string getLastURI()

Gets the last accessed URI from the cookie if user is coming from another page.

Return Value

string The last accessed URI in the cookie (E.g http://site.com/index.php)

at line 637
load(string $type, string $name)

Return the view object, responsible for all db manipulation. Singleton

Parameters

string $type type libraries/helper
string $name name class prefix