Свойство | Type | Description | |
---|---|---|---|
$_instance_hashes |
Свойство | Type | Description | |
---|---|---|---|
$_connection_timeout | |||
$_curl_handle | |||
$_instance_hash | |||
$_last_status | |||
$_logging_callback | |||
$_pass | |||
$_request_timeout | |||
$_user |
Méthode | Description | |
---|---|---|
__construct ( $user, $pass, $connection_timeout = 10, $request_timeout = 30 ) | Constructor. | |
__destruct ( ) | Destructor. | |
delete ( $bookmark ) | Delete a bookmark. | |
delete_tag ( $tag ) | Delete a tag. | |
dump ( ) | Dump all your bookmarks in an importable format. | |
enable_logging ( $func ) | Enable logging to a user-specified function. | |
get ( $url = null, $tags = null, $date = null ) | Get some bookmarks. | |
get_all ( $count = null, $offset = null, $tags = null, $from = null, $to = null ) | Get all bookmarks. | |
get_api_token ( ) | Get the user's API token. | |
get_dates ( $tags = null ) | Get dates. | |
get_last_status ( ) | Get the last status code. | |
get_note ( $id ) | Get a single note. | |
get_recent ( $count = 15, $tags = null ) | Get recent bookmarks. | |
get_rss_token ( ) | Get the user's secret RSS token. | |
get_suggested_tags ( $bookmark ) | Get tag suggestions for a bookmark. | |
get_tags ( ) | Get all tags. | |
get_updated_time ( ) | Call this before get_all() to check for updates. | |
list_notes ( ) | Get the list of notes. | |
rename_tag ( $old, $new ) | Rename a tag. | |
save ( $bookmark, $replace = true ) | Save a new bookmark. (This include both adding and editing.) | |
search_by_date ( $date ) | ||
search_by_interval ( $from, $to ) | ||
search_by_tag ( $tags ) | ||
search_by_url ( $url ) | Some shortcuts to the above. |
Méthode | Description | |
---|---|---|
_json_to_bookmark ( $json ) | This method builds a PinboardBookmark object from an XML element. | |
_json_to_note ( $json ) | This method builds a PinboardNote object from an XML element. | |
_json_to_status ( $json ) | This method translates XML responses into boolean status codes. | |
_normalize_tags ( $tags ) | Normalize tags. | |
_remote ( $method, $args = [], $use_json = true ) | This method handles all remote method calls. | |
_to_datetime ( $timestamp ) | This method translates timestamps into Pinboard API's datetime format. |
public __construct ( $user, $pass, $connection_timeout = 10, $request_timeout = 30 ) |
protected _json_to_bookmark ( $json ) |
protected _json_to_note ( $json ) |
protected _json_to_status ( $json ) |
protected _remote ( $method, $args = [], $use_json = true ) |
protected _to_datetime ( $timestamp ) |
public enable_logging ( $func ) |
public get_all ( $count = null, $offset = null, $tags = null, $from = null, $to = null ) |
public get_suggested_tags ( $bookmark ) |
public get_updated_time ( ) |
public save ( $bookmark, $replace = true ) |