PHP 클래스 Synology_DownloadStation_Api

상속: extends Synology_Api_Authenticate
파일 보기 프로젝트 열기: zzarbi/synology

공개 메소드들

메소드 설명
__construct ( string $address, integer $port = null, string $protocol = null, integer $version = 1, boolean $verifySSL = false ) Info API setup
addTask ( string $uri, unknown $file = null, string $login = null, string $password = null, string $zipPassword = null ) : Ambigous Add a new Task
cleanSearch ( ustring $taskId ) : stdClass Stops and destroys a search task
deleteTask ( string | array $taskId, boolean $forceComplete = false ) : Ambigous Delete a task
getCategory ( ) : stdClass Gets available categories from BTSearch
getConfig ( ) : stdClass Get Limitation settings
getInfo ( ) Return Information about DownloadStation - is_manager - version - version_string
getModule ( ) : stdClass Gets the installed modules (torrent providers) from BTSearch
getRssFeedList ( ustring | array $rssId = 'ALL', $offset, $limit ) : stdClass Refresh all RSS
getRssList ( integer $offset, integer $limit ) : stdClass Get a list of RSS "feeds"
getScheduleConfig ( ) : stdClass Get Schedule settings
getSearchList ( ustring $taskId, integer $offset, integer $limit, string $sortBy = 'title', string $sortDirection = 'desc', string $filterCategory = '', string $filterTitle = '' ) : stdClass Get list of the given search task
getStatistics ( ) : array Get Statistics
getTaskInfo ( string | array $taskId, array $additional = null ) : boolean Get more info about a task
getTaskList ( integer $offset, integer $limit, array $additional = null ) : boolean Get a list of Task
pauseTask ( ustring | array $taskId ) : Ambigous Pause a task
refreshRss ( ustring | array $rssId = 'ALL' ) : stdClass Refresh all RSS
resumeTask ( ustring | array $taskId ) : Ambigous Resume a task
setConfig ( $params ) : boolean Set Limitation settings
setScheduleConfig ( $params ) : boolean Set Limitation settings
startSearchTask ( ustring $keyword, string $module = 'enabled' ) : stdClass Starts a new search task

메소드 상세

__construct() 공개 메소드

Info API setup
public __construct ( string $address, integer $port = null, string $protocol = null, integer $version = 1, boolean $verifySSL = false )
$address string
$port integer
$protocol string
$version integer
$verifySSL boolean

addTask() 공개 메소드

Add a new Task
public addTask ( string $uri, unknown $file = null, string $login = null, string $password = null, string $zipPassword = null ) : Ambigous
$uri string
$file unknown
$login string
$password string
$zipPassword string
리턴 Ambigous

cleanSearch() 공개 메소드

Stops and destroys a search task
public cleanSearch ( ustring $taskId ) : stdClass
$taskId ustring
리턴 stdClass

deleteTask() 공개 메소드

Delete a task
public deleteTask ( string | array $taskId, boolean $forceComplete = false ) : Ambigous
$taskId string | array
$forceComplete boolean
리턴 Ambigous

getCategory() 공개 메소드

Gets available categories from BTSearch
public getCategory ( ) : stdClass
리턴 stdClass

getConfig() 공개 메소드

Get Limitation settings
public getConfig ( ) : stdClass
리턴 stdClass

getInfo() 공개 메소드

Return Information about DownloadStation - is_manager - version - version_string
public getInfo ( )

getModule() 공개 메소드

Gets the installed modules (torrent providers) from BTSearch
public getModule ( ) : stdClass
리턴 stdClass

getRssFeedList() 공개 메소드

Refresh all RSS
public getRssFeedList ( ustring | array $rssId = 'ALL', $offset, $limit ) : stdClass
$rssId ustring | array
리턴 stdClass

getRssList() 공개 메소드

Get a list of RSS "feeds"
public getRssList ( integer $offset, integer $limit ) : stdClass
$offset integer
$limit integer
리턴 stdClass

getScheduleConfig() 공개 메소드

Get Schedule settings
public getScheduleConfig ( ) : stdClass
리턴 stdClass

getSearchList() 공개 메소드

Get list of the given search task
public getSearchList ( ustring $taskId, integer $offset, integer $limit, string $sortBy = 'title', string $sortDirection = 'desc', string $filterCategory = '', string $filterTitle = '' ) : stdClass
$taskId ustring
$offset integer Beginning task on the requested record
$limit integer Number of records requested
$sortBy string Possible value is title, size, date, peers, providers, seeds or leech
$sortDirection string Possible value is desc or asc
$filterCategory string Filter the records by the category using Category ID returned by getCategory function
$filterTitle string Filter the records by the title using this parameter
리턴 stdClass

getStatistics() 공개 메소드

Get Statistics
public getStatistics ( ) : array
리턴 array

getTaskInfo() 공개 메소드

Get more info about a task
public getTaskInfo ( string | array $taskId, array $additional = null ) : boolean
$taskId string | array (one ID or a list of ID)
$additional array (detail,transfer,file,tracker,peer)
리턴 boolean

getTaskList() 공개 메소드

Get a list of Task
public getTaskList ( integer $offset, integer $limit, array $additional = null ) : boolean
$offset integer
$limit integer
$additional array (detail,transfer,file,tracker,peer)
리턴 boolean

pauseTask() 공개 메소드

Pause a task
public pauseTask ( ustring | array $taskId ) : Ambigous
$taskId ustring | array
리턴 Ambigous

refreshRss() 공개 메소드

Refresh all RSS
public refreshRss ( ustring | array $rssId = 'ALL' ) : stdClass
$rssId ustring | array
리턴 stdClass

resumeTask() 공개 메소드

Resume a task
public resumeTask ( ustring | array $taskId ) : Ambigous
$taskId ustring | array
리턴 Ambigous

setConfig() 공개 메소드

Set Limitation settings
public setConfig ( $params ) : boolean
리턴 boolean

setScheduleConfig() 공개 메소드

Set Limitation settings
public setScheduleConfig ( $params ) : boolean
리턴 boolean

startSearchTask() 공개 메소드

Starts a new search task
public startSearchTask ( ustring $keyword, string $module = 'enabled' ) : stdClass
$keyword ustring The search keyword
$module string Module name concatenated by ',' or use 'all' or 'enabled'
리턴 stdClass