KWeb  6.4
KWebCheck Class Reference

Zbiór funkcji upraszczających sprawdzanie uprawnień i różnych pierdół More...

Static Public Member Functions

static need ($what, $critical=true, $message=false)
static needClass ($object, $class, $critical=true)
static needAdmin ($critical=true)
static needUser ($critical=true, $editor=false)
static needEditor ($critical=true)
static right ($id, $critical=true)
static itemAccess ($item, $access, $critical=true, $editor=false)
static itemView ($item, $critical=false, $editor=false)
static needGenre (KWebObject $item, $genre, $critical=true)
static needType ($item, $genre, $type, $strict=false, $critical=true)
 Sprawdza czy podany item należy do typu (lub typów w tablicy)
static needGenreType (KWebObject $item, $list, $strict=false, $critical=true)
 Sprawdza czy podany item należy do typu (lub typów w tablicy)
static needExtension ($extension, $critical=true)
static needAjax ($ajax=true, $critical=true)
static needRequestType ($types, $critical=true)
static onlyInternal ($inc=false, $critical=true)
 Checks if specified inc (or current) isn't opened directly through URL.
static timeLimitShort ()
 Returns FALSE if short time limit was reached.
static timeLimitLong ()
 Returns FALSE if long time limit was reached.

Detailed Description

Zbiór funkcji upraszczających sprawdzanie uprawnień i różnych pierdół


Member Function Documentation

static KWebCheck::itemAccess ( item,
access,
critical = true,
editor = false 
) [static]
static KWebCheck::itemView ( item,
critical = false,
editor = false 
) [static]
static KWebCheck::need ( what,
critical = true,
message = false 
) [static]
static KWebCheck::needAdmin ( critical = true) [static]
static KWebCheck::needAjax ( ajax = true,
critical = true 
) [static]
static KWebCheck::needClass ( object,
class,
critical = true 
) [static]
static KWebCheck::needEditor ( critical = true) [static]
static KWebCheck::needExtension ( extension,
critical = true 
) [static]
static KWebCheck::needGenre ( KWebObject item,
genre,
critical = true 
) [static]
static KWebCheck::needGenreType ( KWebObject item,
list,
strict = false,
critical = true 
) [static]

Sprawdza czy podany item należy do typu (lub typów w tablicy)

Parameters:
$itemKWebObject bla
$listlista Gatunek=>tablica typów
$strictboolean Dopuszcza również podtypy
static KWebCheck::needRequestType ( types,
critical = true 
) [static]
static KWebCheck::needType ( item,
genre,
type,
strict = false,
critical = true 
) [static]

Sprawdza czy podany item należy do typu (lub typów w tablicy)

Parameters:
$itemKWebObject bla
$genreGatunek
static KWebCheck::needUser ( critical = true,
editor = false 
) [static]
static KWebCheck::onlyInternal ( inc = false,
critical = true 
) [static]

Checks if specified inc (or current) isn't opened directly through URL.

static KWebCheck::right ( id,
critical = true 
) [static]
static KWebCheck::timeLimitLong ( ) [static]

Returns FALSE if long time limit was reached.

static KWebCheck::timeLimitShort ( ) [static]

Returns FALSE if short time limit was reached.


The documentation for this class was generated from the following file: