Class XFAction_search

Description

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

XFAction
   |
   --XFAction_search
Class Constant Summary
 LIMIT_SEARCH = 1000
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_today ()
true search_by_user ()
Variables
mixed $error = '' (line 29)
  • access: protected

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

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

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

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

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

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 180)
  • since: 1.0.0
  • access: protected
true ajax ( $input)
  • $input

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

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 423)

fetch results from database

  • since: 1.0.0
  • access: public
true get_results ()
init (line 44)
  • 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 53)
  • since: 1.0.0
  • access: protected
true regular ()

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

run a preset search query: posts by last read timestamp

  • since: 1.0.0
  • access: public
true search_by_last_read ()
search_by_tag (line 97)

run a preset search query: posts by tag

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

run a preset search query: posts by time

  • since: 1.0.0
  • access: public
true search_by_time ()
search_by_today (line 151)

run a preset search query: posts by today

  • since: 1.0.0
  • access: public
true search_by_today ()
search_by_user (line 115)

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 27)
  • var: limit search results to x items (default is 1000)

Inherited Constants

Inherited from XFAction

XFAction::API_VERSION

Documentation generated on Tue, 21 Oct 2008 20:57:28 +0200 by phpDocumentor 1.4.1