PHP Class train, 12306

Exibir arquivo Open project: sohow/12306 Class Usage Examples

Public Properties

Property Type Description
$from_station_code 出发日
$from_station_name
$limit_ticket_list 指定车次
$limit_train_list
$query_date
$query_num
$station
$station_names 目的地
$ticket_hash 指定车座
$to_station_code
$to_station_name 出发地

Public Methods

Method Description
coding ( $str )
do_query ( $train_list )
error ( $msg )
filter_train ( $train_list )
has_ticket ( $tickets )
init ( )
init_param ( )
init_station_code ( )
main ( )
query ( $query_date, $from_station, $to_station )
show ( $msg )
show_list ( $tickets )
show_title ( )
usage ( )
waring ( $msg )

Method Details

coding() public static method

public static coding ( $str )

do_query() public static method

public static do_query ( $train_list )

error() public static method

public static error ( $msg )

filter_train() public static method

public static filter_train ( $train_list )

has_ticket() public static method

public static has_ticket ( $tickets )

init() public static method

public static init ( )

init_param() public static method

public static init_param ( )

init_station_code() public static method

public static init_station_code ( )

main() public static method

public static main ( )

query() public static method

public static query ( $query_date, $from_station, $to_station )

show() public static method

public static show ( $msg )

show_list() public static method

public static show_list ( $tickets )

show_title() public static method

public static show_title ( )

usage() public static method

public static usage ( )

waring() public static method

public static waring ( $msg )

Property Details

$from_station_code public_oe static_oe property

出发日
public static $from_station_code

$from_station_name public_oe static_oe property

public static $from_station_name

$limit_ticket_list public_oe static_oe property

指定车次
public static $limit_ticket_list

$limit_train_list public_oe static_oe property

public static $limit_train_list

$query_date public_oe static_oe property

public static $query_date

$query_num public_oe static_oe property

public static $query_num

$station public_oe static_oe property

public static $station

$station_names public_oe static_oe property

目的地
public static $station_names

$ticket_hash public_oe static_oe property

指定车座
public static $ticket_hash

$to_station_code public_oe static_oe property

public static $to_station_code

$to_station_name public_oe static_oe property

出发地
public static $to_station_name