Class XFAction_search

Description

Located in /lb_private/action.search.php (line 23)

XFAction
   |
   --XFAction_search
Class Constant Summary
 LIMIT_SEARCH = 1000
 USE_TAN = false
Variable Summary
mixed $error
mixed $gpc
string $hash
mixed $markgpc
mixed $success
mixed $version
Method Summary
static mixed fdate (string $a, integer $b)
true ajax ( $input)
boolean execute ()
true get_results ()
mixed init (string $a, array $b)
true regular ()
true search_by_tag ()
true search_by_time ()
true search_by_user ()
Variables
mixed $error = '' (line 34)
  • access: protected

Redefinition of:
XFAction::$error
mixed $gpc = array() (line 35)
  • access: protected

Redefinition of:
XFAction::$gpc
string $hash = '' (line 41)
  • var: hash of current search query
  • access: public
mixed $markgpc = array() (line 36)
  • access: protected

Redefinition of:
XFAction::$markgpc
mixed $success = false (line 33)
  • access: protected

Redefinition of:
XFAction::$success
mixed $version = 0x01 (line 37)
  • access: public

Redefinition of:
XFAction::$version
Methods
static method fdate (line 553)

format a timespan

format a timespan

  • since: 1.0.0
  • access: protected
static mixed fdate (string $a, integer $b)
  • string $a: timestamp in format yyyy-mm-dd or dd.mm.yyyy
  • integer $b: if '0', time is midnight otherwise one second before
ajax (line 179)
  • since: 1.0.0
  • access: protected
true ajax ( $input)
  • $input

Redefinition of:
XFAction::ajax()
entry point for ajax requests - called by init()
execute (line 206)

perform a search in database

perform a search in database

  • since: 1.0.0
  • access: public
boolean execute ()

Redefinition of:
XFAction::execute()
execute the main 'action' the name of a file says
get_results (line 446)

fetch results from database

fetch results from database

  • since: 1.0.0
  • access: public
true get_results ()
init (line 49)
  • since: 1.0.0
  • access: public
mixed init (string $a, array $b)
  • string $a: select handler
  • array $b: input data for asynchronous request

Redefinition of:
XFAction::init()
main entry point
regular (line 58)
  • since: 1.0.0
  • access: protected
true regular ()

Redefinition of:
XFAction::regular()
run an action on regular basis - called by init()
search_by_last_activity (line 165)

run a preset search query: topics where current user is involved

run a preset search query: topics where current user is involved

  • since: 1.1.0
  • access: public
true search_by_last_activity ()
search_by_tag (line 104)

run a preset search query: posts by tag

run a preset search query: posts by tag

  • since: 1.0.0
  • access: public
true search_by_tag ()
search_by_time (line 144)

run a preset search query: posts by time

run a preset search query: posts by time

  • since: 1.0.0
  • access: public
true search_by_time ()
search_by_user (line 124)

run a preset search query: posts by user

run a preset search query: posts by user

  • since: 1.0.0
  • access: public
true search_by_user ()

Inherited Methods

Inherited From XFAction

XFAction::__construct()
XFAction::ajax()
XFAction::execute()
XFAction::get_error()
XFAction::get_GPC()
XFAction::get_mark_GPC()
XFAction::get_success()
XFAction::init()
XFAction::regular()
Class Constants
LIMIT_SEARCH = 1000 (line 28)
  • var: limit search results to x items (default is 1000)
RESULTS_PERPAGE = 50 (line 32)
  • var: how much items should be listed on each page (default is 50)
USE_TAN = false (line 24)

Inherited Constants

Inherited from XFAction

XFAction::API_VERSION

Documentation generated on Sun, 20 Jun 2010 11:59:06 +0200 by phpDocumentor 1.4.3