예제 #1
0
 /**
  * Evaluates if a column is accessable by the FE-User(-Group).
  *
  * @param Tx_PtExtlist_Domain_Configuration_Columns_ColumnConfig $columnConfig
  *
  * @return bool
  */
 public function isAccessableColumn(Tx_PtExtlist_Domain_Configuration_Columns_ColumnConfig $columnConfig)
 {
     // FAIL if one of this tests are failing.
     if (!$this->checkFields($columnConfig->getFieldIdentifier())) {
         return false;
     }
     // OR
     if (!$this->checkColumn($columnConfig)) {
         return false;
     }
     // OTHERWISE allow access.
     return true;
 }
예제 #2
0
 public function testGetFieldIdentifier()
 {
     $this->assertEquals($this->columnConfig->getFieldIdentifier()->getFieldConfigByIdentifier($this->columnSettings['fieldIdentifier'])->getIdentifier(), $this->columnSettings['fieldIdentifier']);
 }