public static function getComponentType($id) { $keyArr = explode('/', $id); array_pop($keyArr); $type = array_pop($keyArr); return $type; }