static function GetDeviceCustomAttributeList() { global $dbh; $dcaList = array(); $sql = "SELECT AttributeID, Label, AttributeType, Required, AllDevices, DefaultValue\r\n\t\t\tFROM fac_DeviceCustomAttribute\r\n\t\t\tORDER BY Label, AttributeID;"; foreach ($dbh->query($sql) as $dcaRow) { $dcaList[$dcaRow["AttributeID"]] = DeviceCustomAttribute::RowToObject($dcaRow); } return $dcaList; }