Library/Bullhorn/FastRest/Api/Services/ControllerHelper/Show.php
private function showField(\stdClass $output, ApiInterface $entity, $column) {
        if($this->getAcl()->canReadField($entity, $column)) {
            if(in_array($column, $entity->getUnReadableFields())) {
                $value = null;
            } else {
                $value = $entity->readAttribute($column);
                //Fix for Date and DateTime
                if(is_object($value) && method_exists($value, '__toString')) {
                    $value = $value->__toString();
                }
            }
            $output->{$column} = $value;
        }
    }
private function showField(\stdClass $output, ApiInterface $entity, $column) {
        if($this->getAcl()->canReadField($entity, $column)) {
            if(in_array($column, $entity->getUnReadableFields())) {
                $value = null;
            } else {
                $value = $entity->readAttribute($column);
                //Fix for Date and DateTime
                if(is_object($value) && method_exists($value, '__toString')) {
                    $value = $value->__toString();
                }
            }
            $output->{$column} = $value;
        }
    }
private function showField ( \ stdClass $ output , ApiInterface $ entity , $ column ) { if ( $ this -> getAcl ( ) -> canReadField ( $ entity , $ column ) ) { if ( in_array ( $ column , $ entity -> getUnReadableFields ( ) ) ) { $ value = null ; } else { $ value = $ entity -> readAttribute ( $ column ) ; //Fix for Date and DateTime if ( is_object ( $ value ) && method_exists ( $ value , '__toString' ) ) { $ value = $ value -> __toString ( ) ; } } $ output -> { $ column } = $ value ; } }
Shows an individual field

@param \stdClass $output
@param ApiInterface $entity
@param string $column

@return void
Shows an individual field