public function __construct( Attribute $attribute, $propertyCaption, $valueCaption, ViewInformation $viewInformation, $levelName, AttributeIDFilter $attributeIDFilter ) {
		parent::__construct( new RecordUnorderedListEditor( $attribute, 5 ) );
		
		$this->levelName = $levelName;
		$this->attributeIDFilter = $attributeIDFilter;
		$this->showPropertyColumn = !$attributeIDFilter->leavesOnlyOneOption();
		
		$this->recordSetTableEditor = new RecordSetTableEditor(
			$attribute,
			new SimplePermissionController( false ),
			new ShowEditFieldChecker( true ),
			new AllowAddController( false ),
			false,
			false,
			null
		);
		
		$this->propertyAttribute = new Attribute( "property", $propertyCaption, "short-text" );
		$this->valueAttribute = new Attribute( "value", $valueCaption, "short-text" );
		
		foreach ( $viewInformation->getPropertyToColumnFilters() as $propertyToColumnFilter )
			$this->recordSetTableEditor->addEditor( new DummyViewer( $propertyToColumnFilter->getAttribute() ) );

		$o = OmegaWikiAttributes::getInstance();
			
		$this->recordSetTableEditor->addEditor( new DummyViewer( $o->objectAttributes ) );
		addTableMetadataEditors( $this->recordSetTableEditor, $viewInformation );
	}
예제 #2
0
	public function __construct( Editor $wrappedEditor, $linkCaption ) {
		parent::__construct( $wrappedEditor );
				
		$this->linkCaption = $linkCaption;
	}