Account::getDataTypePlugins PHP Method

getDataTypePlugins() public method

Returns the subset of Data Type plugins selected by this user.
public getDataTypePlugins ( )
    public function getDataTypePlugins()
    {
        $groupedDataTypes = Core::$dataTypePlugins;
        $whitelistedGroupedDataTypes = array();
        while (list($group_name, $dataTypes) = each($groupedDataTypes)) {
            $matched = array();
            foreach ($dataTypes as $dataType) {
                if (in_array($dataType->getFolder(), $this->selectedDataTypes)) {
                    $matched[] = $dataType;
                }
            }
            if (!empty($matched)) {
                $whitelistedGroupedDataTypes[$group_name] = $matched;
            }
        }
        return $whitelistedGroupedDataTypes;
    }