Welcompose
[ class tree: Welcompose ] [ index: Welcompose ] [ all elements ]

Class: Utility_Cookie

Source Location: /utility_classes/cookie.class.php

Class Overview




Variables

Methods



Class Details

[line 38]


[ Top ]


Class Variables

static $instance =  null

[line 45]

Singleton



Tags:

access:  public

Type:   object


[ Top ]

$admin_cookie =  null

[line 58]

Reference to admin cookie



Tags:

access:  protected

Type:   object


[ Top ]

$base =  null

[line 52]

Reference to base class



Tags:

access:  public

Type:   object


[ Top ]



Class Methods


constructor __construct [line 65]

Utility_Cookie __construct( )

Start instance of base class, load configuration and establish database connection. Please don't call the constructor direcly, use the singleton pattern instead.



Tags:

access:  public


[ Top ]

method adminCheckCookieData [line 147]

void adminCheckCookieData( )

Makes sure that the cookie data structure is an array.



Tags:

access:  protected


[ Top ]

method adminGetCurrentProject [line 129]

int adminGetCurrentProject( )

Returns current project id from admin cookie. If no current project can be found, null will be returned.



Tags:

access:  public


[ Top ]

method adminSwitchCurrentProject [line 100]

bool adminSwitchCurrentProject( [int $new_project = null])

Sets cookie with new default project. Takes new project id as first argument. Returns bool.



Tags:

throws:  Utility_CookieException
access:  public


Parameters:

int   $new_project   Project id

[ Top ]


Documentation generated on Sun, 08 Jan 2012 17:51:45 +0100 by phpDocumentor 1.4.3