C# 클래스 Blade.Utility.DataSourceHelper

Handles resolution of data source item(s) values for renderings
Based on a heavily modified/simplified version of John West's SC7 sublayout parameters prototype helper code: http://www.sitecore.net/Community/Technical-Blogs/John-West-Sitecore-Blog/Posts/2013/05/Sitecore-7-Data-Sources-Part-6-Access-Multiple-Data-Source-Items-from-MVC-Views.aspx Thanks for all the work you've done for the community John :)
파일 보기 프로젝트 열기: kamsar/Blade

공개 메소드들

메소드 설명
ResolveDataSource ( string dataSource, System.Item contextItem ) : System.Item

Given a DataSource string (from the layout editor), resolves the item that refers to.

ResolveDataSource ( string dataSource, System.Item contextItem, IProviderSearchContext searchContext ) : System.Item

Given a DataSource string (from the layout editor), resolves the item that refers to.

ResolveDataSource ( string dataSource, System.Item contextItem, IProviderSearchContext searchContext, bool assertSingleItem ) : System.Item

Given a DataSource string (from the layout editor), resolves the item that refers to.

ResolveMultipleDataSource ( string dataSource, System.Item contextItem ) : System.Item[]

Given a DataSource string (from the layout editor), resolves the item(s) that refers to.

ResolveMultipleDataSource ( string dataSource, System.Item contextItem, IProviderSearchContext searchContext ) : System.Item[]

Given a DataSource string (from the layout editor), resolves the item(s) that refers to.

ResolveMultipleDataSource ( string dataSource, System.Item contextItem, IProviderSearchContext searchContext, bool assertSingleItem ) : System.Item[]

Given a DataSource string (from the layout editor), resolves the item(s) that refers to.

비공개 메소드들

메소드 설명
RunPipeline ( string dataSource, System.Item contextItem, IProviderSearchContext searchContext ) : System.Item[]

Invoke the ResolveRenderingDataSource pipeline to resolve the data source item

메소드 상세

ResolveDataSource() 공개 정적인 메소드

Given a DataSource string (from the layout editor), resolves the item that refers to.
public static ResolveDataSource ( string dataSource, System.Item contextItem ) : System.Item
dataSource string The string data source passed to the presentation component.
contextItem System.Item The context item for relative paths and specifying the database from which to retrieve other items.
리턴 System.Item

ResolveDataSource() 공개 정적인 메소드

Given a DataSource string (from the layout editor), resolves the item that refers to.
public static ResolveDataSource ( string dataSource, System.Item contextItem, IProviderSearchContext searchContext ) : System.Item
dataSource string The string data source passed to the presentation component.
contextItem System.Item The context item for relative paths and specifying the database from which to retrieve other items.
searchContext IProviderSearchContext The search context.
리턴 System.Item

ResolveDataSource() 공개 정적인 메소드

Given a DataSource string (from the layout editor), resolves the item that refers to.
public static ResolveDataSource ( string dataSource, System.Item contextItem, IProviderSearchContext searchContext, bool assertSingleItem ) : System.Item
dataSource string The string data source passed to the presentation component.
contextItem System.Item The context item for relative paths and specifying the database from which to retrieve other items.
searchContext IProviderSearchContext The search context.
assertSingleItem bool If true, an exception will be thrown if more than one item matches the data source spec
리턴 System.Item

ResolveMultipleDataSource() 공개 정적인 메소드

Given a DataSource string (from the layout editor), resolves the item(s) that refers to.
public static ResolveMultipleDataSource ( string dataSource, System.Item contextItem ) : System.Item[]
dataSource string The string data source passed to the presentation component.
contextItem System.Item The context item for relative paths and specifying the database from which to retrieve other items.
리턴 System.Item[]

ResolveMultipleDataSource() 공개 정적인 메소드

Given a DataSource string (from the layout editor), resolves the item(s) that refers to.
public static ResolveMultipleDataSource ( string dataSource, System.Item contextItem, IProviderSearchContext searchContext ) : System.Item[]
dataSource string The string data source passed to the presentation component.
contextItem System.Item The context item for relative paths and specifying the database from which to retrieve other items.
searchContext IProviderSearchContext The search context.
리턴 System.Item[]

ResolveMultipleDataSource() 공개 정적인 메소드

Given a DataSource string (from the layout editor), resolves the item(s) that refers to.
public static ResolveMultipleDataSource ( string dataSource, System.Item contextItem, IProviderSearchContext searchContext, bool assertSingleItem ) : System.Item[]
dataSource string The string data source passed to the presentation component.
contextItem System.Item The context item for relative paths and specifying the database from which to retrieve other items.
searchContext IProviderSearchContext The search context.
assertSingleItem bool If true, an exception will be thrown if more than one item matches the data source spec
리턴 System.Item[]