PHP 클래스 Mnemo_Notepads_Base, horde

Copyright 2001-2016 Horde LLC (http://www.horde.org/) See the enclosed file LICENSE for license information (ASL). If you did not receive this file, see http://www.horde.org/licenses/apache.
저자: Jon Parise ([email protected])
저자: Gunnar Wrobel ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_params array Additional parameters for the notepad handling.
$_shares Horde_Share_Base The share backend.
$_user string The current user.

공개 메소드들

메소드 설명
__construct ( Horde_Share_Base $shares, string $user, array $params ) Constructor.
ensureDefaultShare ( ) : string | null Ensure the share system has a default notepad share for the current user if the default share feature is activated.
getDefaultShare ( ) : string Returns the default share's ID, if it can be determined from the share backend.
setDefaultShare ( string $share ) Runs any actions after setting a new default tasklist.

보호된 메소드들

메소드 설명
_getDefaultShareName ( ) : string Return the name of the default share.
_prepareDefaultShare ( Horde_Share_Object $share ) Add any modifiers required to the share in order to mark it as default.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Horde_Share_Base $shares, string $user, array $params )
$shares Horde_Share_Base The share backend.
$user string The current user.
$params array Additional parameters.

_getDefaultShareName() 추상적인 보호된 메소드

Return the name of the default share.
abstract protected _getDefaultShareName ( ) : string
리턴 string The name of a default share.

_prepareDefaultShare() 보호된 메소드

Add any modifiers required to the share in order to mark it as default.
protected _prepareDefaultShare ( Horde_Share_Object $share )
$share Horde_Share_Object The new default share.

ensureDefaultShare() 공개 메소드

Ensure the share system has a default notepad share for the current user if the default share feature is activated.
public ensureDefaultShare ( ) : string | null
리턴 string | null The id of the new default share or NULL if no share was created.

getDefaultShare() 공개 메소드

Returns the default share's ID, if it can be determined from the share backend.
public getDefaultShare ( ) : string
리턴 string The default share ID.

setDefaultShare() 공개 메소드

Runs any actions after setting a new default tasklist.
public setDefaultShare ( string $share )
$share string The default share ID.

프로퍼티 상세

$_params 보호되어 있는 프로퍼티

Additional parameters for the notepad handling.
protected array $_params
리턴 array

$_shares 보호되어 있는 프로퍼티

The share backend.
protected Horde_Share_Base $_shares
리턴 Horde_Share_Base

$_user 보호되어 있는 프로퍼티

The current user.
protected string $_user
리턴 string