PHP 클래스 Xpressengine\Routing\Repositories\DatabaseRouteRepository

저자: XE Developers ([email protected])
상속: implements Xpressengine\Routing\RouteRepository
파일 보기 프로젝트 열기: xpressengine/xpressengine

공개 프로퍼티들

프로퍼티 타입 설명
$protectedUrl array Protected keyword for url first segment

보호된 프로퍼티들

프로퍼티 타입 설명
$configs Illuminate\Contracts\Config\Repository Laravel config instance
$model string The route model

공개 메소드들

메소드 설명
__construct ( Illuminate\Contracts\Config\Repository $configs, string $model ) DatabaseRouteRepository constructor.
all ( ) : InstanceRoute[] Returns all route items
create ( array $input ) : InstanceRoute Save a new route item and return the instance
createModel ( ) : Model Create a new instance of the model.
delete ( InstanceRoute $route ) : boolean | null Delete the route item from the repository
fetchByModule ( string $module ) : InstanceRoute[] Retrieve routes by module name
fetchBySiteKey ( string $siteKey ) : InstanceRoute[] Retrieve routes by site key
findByInstanceId ( string $instanceId ) : InstanceRoute Retrieve a route by instance identifier
findByUrlAndSiteKey ( string $url, string $siteKey ) : InstanceRoute Retrieve a route by url segment and site key
getModel ( ) : string Gets the name of the Eloquent user model.
put ( InstanceRoute $route ) : InstanceRoute Save the route item
setModel ( string $model ) Sets the name of the Eloquent user model.

보호된 메소드들

메소드 설명
validateUrl ( string $siteKey, string $url, boolean $isNew ) : boolean Check validate given url

메소드 상세

__construct() 공개 메소드

DatabaseRouteRepository constructor.
public __construct ( Illuminate\Contracts\Config\Repository $configs, string $model )
$configs Illuminate\Contracts\Config\Repository Laravel config instance
$model string The route model

all() 공개 메소드

Returns all route items
public all ( ) : InstanceRoute[]
리턴 Xpressengine\Routing\InstanceRoute[]

create() 공개 메소드

Save a new route item and return the instance
public create ( array $input ) : InstanceRoute
$input array route item attributes
리턴 Xpressengine\Routing\InstanceRoute

createModel() 공개 메소드

Create a new instance of the model.
public createModel ( ) : Model
리턴 Illuminate\Database\Eloquent\Model

delete() 공개 메소드

Delete the route item from the repository
public delete ( InstanceRoute $route ) : boolean | null
$route Xpressengine\Routing\InstanceRoute route instance
리턴 boolean | null

fetchByModule() 공개 메소드

Retrieve routes by module name
public fetchByModule ( string $module ) : InstanceRoute[]
$module string module name
리턴 Xpressengine\Routing\InstanceRoute[]

fetchBySiteKey() 공개 메소드

Retrieve routes by site key
public fetchBySiteKey ( string $siteKey ) : InstanceRoute[]
$siteKey string site key
리턴 Xpressengine\Routing\InstanceRoute[]

findByInstanceId() 공개 메소드

Retrieve a route by instance identifier
public findByInstanceId ( string $instanceId ) : InstanceRoute
$instanceId string instance identifier
리턴 Xpressengine\Routing\InstanceRoute

findByUrlAndSiteKey() 공개 메소드

Retrieve a route by url segment and site key
public findByUrlAndSiteKey ( string $url, string $siteKey ) : InstanceRoute
$url string first segment of url
$siteKey string site key
리턴 Xpressengine\Routing\InstanceRoute

getModel() 공개 메소드

Gets the name of the Eloquent user model.
public getModel ( ) : string
리턴 string

put() 공개 메소드

Save the route item
public put ( InstanceRoute $route ) : InstanceRoute
$route Xpressengine\Routing\InstanceRoute route instance
리턴 Xpressengine\Routing\InstanceRoute

setModel() 공개 메소드

Sets the name of the Eloquent user model.
public setModel ( string $model )
$model string model class

validateUrl() 보호된 메소드

Check validate given url
protected validateUrl ( string $siteKey, string $url, boolean $isNew ) : boolean
$siteKey string site key
$url string first segment of url
$isNew boolean if create new route then given true
리턴 boolean

프로퍼티 상세

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

Laravel config instance
protected Repository,Illuminate\Contracts\Config $configs
리턴 Illuminate\Contracts\Config\Repository

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

The route model
protected string $model
리턴 string

$protectedUrl 공개적으로 프로퍼티

Protected keyword for url first segment
public array $protectedUrl
리턴 array