PHP 클래스 PluginUpdate_1_3, bp-reply-by-email

저자: Janis Elsts
파일 보기 프로젝트 열기: r-a-y/bp-reply-by-email 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$download_url
$homepage
$id
$slug
$upgrade_notice
$version

공개 메소드들

메소드 설명
fromJson ( string $json, boolean $triggerErrors = false ) : PluginUpdate | null Create a new instance of PluginUpdate from its JSON-encoded representation.
fromObject ( StdClass | PluginInfo | PluginUpdate $object ) : PluginUpdate Create a new instance of PluginUpdate by copying the necessary fields from another object.
fromPluginInfo ( PluginInfo $info ) : PluginUpdate Create a new instance of PluginUpdate based on an instance of PluginInfo.
toStdClass ( ) : StdClass Create an instance of StdClass that can later be converted back to a PluginUpdate. Useful for serialization and caching, as it avoids the "incomplete object" problem if the cached value is loaded before this class.
toWpFormat ( ) : object Transform the update into the format used by WordPress native plugin API.

메소드 상세

fromJson() 공개 정적인 메소드

Create a new instance of PluginUpdate from its JSON-encoded representation.
public static fromJson ( string $json, boolean $triggerErrors = false ) : PluginUpdate | null
$json string
$triggerErrors boolean
리턴 PluginUpdate | null

fromObject() 공개 정적인 메소드

Create a new instance of PluginUpdate by copying the necessary fields from another object.
public static fromObject ( StdClass | PluginInfo | PluginUpdate $object ) : PluginUpdate
$object StdClass | PluginInfo | PluginUpdate The source object.
리턴 PluginUpdate The new copy.

fromPluginInfo() 공개 정적인 메소드

Basically, this just copies a subset of fields from one object to another.
public static fromPluginInfo ( PluginInfo $info ) : PluginUpdate
$info PluginInfo
리턴 PluginUpdate

toStdClass() 공개 메소드

Create an instance of StdClass that can later be converted back to a PluginUpdate. Useful for serialization and caching, as it avoids the "incomplete object" problem if the cached value is loaded before this class.
public toStdClass ( ) : StdClass
리턴 StdClass

toWpFormat() 공개 메소드

Transform the update into the format used by WordPress native plugin API.
public toWpFormat ( ) : object
리턴 object

프로퍼티 상세

$download_url 공개적으로 프로퍼티

public $download_url

$homepage 공개적으로 프로퍼티

public $homepage

$id 공개적으로 프로퍼티

public $id

$slug 공개적으로 프로퍼티

public $slug

$upgrade_notice 공개적으로 프로퍼티

public $upgrade_notice

$version 공개적으로 프로퍼티

public $version