PHP 클래스 Alltube\Config

파일 보기 프로젝트 열기: rudloff/alltube 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$avconv string avconv or ffmpeg binary path.
$convert boolean Enable audio conversion.
$curl string curl binary path.
$curl_params array curl parameters.
$params array youtube-dl parameters.
$python string python binary path.
$rtmpdump string rtmpdump binary path.
$youtubedl string youtube-dl binary path.

공개 메소드들

메소드 설명
__construct ( array $options ) Config constructor.
destroyInstance ( ) : void Destroy singleton instance.
getInstance ( string $yamlfile = 'config.yml' ) : Config Get Config singleton instance from YAML config file.

메소드 상세

__construct() 공개 메소드

Available options: * youtubedl: youtube-dl binary path * python: Python binary path * avconv: avconv or ffmpeg binary path * rtmpdump: rtmpdump binary path * curl: curl binary path * params: Array of youtube-dl parameters * curl_params: Array of curl parameters * convert: Enable conversion?
public __construct ( array $options )
$options array Options

destroyInstance() 공개 정적인 메소드

Destroy singleton instance.
public static destroyInstance ( ) : void
리턴 void

getInstance() 공개 정적인 메소드

Get Config singleton instance from YAML config file.
public static getInstance ( string $yamlfile = 'config.yml' ) : Config
$yamlfile string YAML config file name
리턴 Config

프로퍼티 상세

$avconv 공개적으로 프로퍼티

avconv or ffmpeg binary path.
public string $avconv
리턴 string

$convert 공개적으로 프로퍼티

Enable audio conversion.
public bool $convert
리턴 boolean

$curl 공개적으로 프로퍼티

curl binary path.
public string $curl
리턴 string

$curl_params 공개적으로 프로퍼티

curl parameters.
public array $curl_params
리턴 array

$params 공개적으로 프로퍼티

youtube-dl parameters.
public array $params
리턴 array

$python 공개적으로 프로퍼티

python binary path.
public string $python
리턴 string

$rtmpdump 공개적으로 프로퍼티

rtmpdump binary path.
public string $rtmpdump
리턴 string

$youtubedl 공개적으로 프로퍼티

youtube-dl binary path.
public string $youtubedl
리턴 string