public function getFieldsByDatatype($objectName, $datatype)
    {
        $datatypeFieldConfigurations = array();

        $fieldConfigurations = $this->getFields($objectName);
        foreach ($fieldConfigurations as $fieldConfiguration) {
            if ($fieldConfiguration['datatype'] == $datatype) {
                $datatypeFieldConfigurations[] = $fieldConfiguration;
            }
        }

        return $datatypeFieldConfigurations;
    }
public function getFieldsByDatatype($objectName, $datatype)
    {
        $datatypeFieldConfigurations = array();

        $fieldConfigurations = $this->getFields($objectName);
        foreach ($fieldConfigurations as $fieldConfiguration) {
            if ($fieldConfiguration['datatype'] == $datatype) {
                $datatypeFieldConfigurations[] = $fieldConfiguration;
            }
        }

        return $datatypeFieldConfigurations;
    }
public function getFieldsByDatatype ( $ objectName , $ datatype ) { $ datatypeFieldConfigurations = array ( ) ; $ fieldConfigurations = $ this -> getFields ( $ objectName ) ; foreach ( $ fieldConfigurations as $ fieldConfiguration ) { if ( $ fieldConfiguration [ 'datatype' ] == $ datatype ) { $ datatypeFieldConfigurations [ ] = $ fieldConfiguration ; } } return $ datatypeFieldConfigurations ; }
Returns all fields with the specified datatype for an object.

@param string $objectName
@param string $datatype

@return array
Returns all fields with the specified datatype for an object .